Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Soomrojb committed Jun 13, 2016
1 parent 1aadf77 commit 65ae1c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Expand Up @@ -16,9 +16,10 @@
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'}

response = requests.get(NewURL, str(qargs))
root = lxml.html.fromstring(response.content)

print "website loaded successfully"
print response.content
print str(root)

#html = requests.get(NewURL, str(qargs))
#root = lxml.html.fromstring(str(html.content))
Expand Down

0 comments on commit 65ae1c4

Please sign in to comment.