Permalink
Browse files

Update scraper.py

  • Loading branch information...
byrnli committed Apr 18, 2016
1 parent b6b7fc6 commit 2852282c2c85eb775f0515a1fddb68ede45e32f5
Showing with 5 additions and 2 deletions.
  1. +5 −2 scraper.py
View
@@ -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)

0 comments on commit 2852282

Please sign in to comment.