Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mipware committed Jul 28, 2014
1 parent 51d35f8 commit e36faaa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scraper.py
@@ -1,11 +1,16 @@
# This is a template for a Python scraper on Morph (https://morph.io)
# including some code snippets below that you should find helpful

# import scraperwiki
import scraperwiki
from bs4 import BeautifulSoup

# import lxml.html
#
# # Read in a page
# html = scraperwiki.scrape("http://foo.com")
# html = scraperwiki.scrape("http://warded.se/turf/round.php?round=49&sort=2&order=0&rid=139")
soup = BeautifulSoup("http://warded.se/turf/round.php?round=49&sort=2&order=0&rid=139")
print(soup.prettify())

#
# # Find something on the page using css selectors
# root = lxml.html.fromstring(html)
Expand Down

0 comments on commit e36faaa

Please sign in to comment.