Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
blablupcom committed Aug 2, 2015
1 parent e84bc47 commit 16256ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -4,6 +4,6 @@
user_agent = {'User-Agent': 'Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)'}
p = requests.get('http://www.manta.com/world/Oceania/Australia/', headers=user_agent)
s = bs(p.text)
print soup
print s
title = s.find('span', attrs={'itemprop':'title'}).text
print title

0 comments on commit 16256ad

Please sign in to comment.