Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mcvax committed Feb 6, 2015
1 parent b0b8085 commit 40bed7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@


pos = 0
for el in root.cssselect("div.year-end-review"):
for el in root.cssselect("div.#album"):

mytest = el.text_content()

print str(mytest.encode('utf-8'))

if hasattr(el, 'div div div h1'):
print el.cssselect("h1")[0].text_content()
if hasattr(el, 'div div h1'):
print el.cssselect('div div h1')[0].text_content()

if hasattr(el, 'h2'):
print el.cssselect("h2")[0].text_content()
if hasattr(el, 'div div div h1'):
print el.cssselect('div div div h1')[0].text_content()

if hasattr(el, 'div div div h1'):
title = el.cssselect("div div div h1")[0].text_content()
Expand Down

0 comments on commit 40bed7f

Please sign in to comment.