Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.13 KB

File metadata and controls

31 lines (21 loc) · 1.13 KB

Week 7 - CSS Layout, Web Scraping

What You'll Learn

  • How to make your own layouts
  • How to start scraping websites

Today's Session

Example Portfolio Layouts

Try to re-create any of these layouts from scratch, using your own name and content. Feel free to pick your own fonts and colors, but the layouts must be the same.

Here's what I did in class for Mike's: mikebostock.html

Web Scraping

Sometimes organizations post their data online, but aren't willing to provide you with a downloadable version. If you really want the data for analysis, then the next step is to see if you can "scrape" the data yourself.

We'll be following along with parts of a web scraping course I've taught in the past that usually takes around 3 days, but we'll be going a little faster and skipping around.

Full tutorial: http://first-web-scraper.readthedocs.org/en/latest/

Example python:

urls = ["example.com", "sisiwei.com"]

for url in urls:
    print "<a href='" + url + "'></a>"