Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnli committed Apr 18, 2016
1 parent b6b7fc6 commit 2852282
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scraper.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# This is a template for a Python scraper on morph.io (https://morph.io)
# including some code snippets below that you should find helpful

# import scraperwiki
# import lxml.html
import scraperwiki
import lxml.html
#
# # Read in a page
# html = scraperwiki.scrape("http://foo.com")

pcode = 2000
html = scraperwiki.scrape("http://www.censusdata.abs.gov.au/census_services/getproduct/census/2011/quickstat/POA"+str(pcode))
#
# # Find something on the page using css selectors
# root = lxml.html.fromstring(html)
Expand Down

0 comments on commit 2852282

Please sign in to comment.