Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruBratu committed Feb 26, 2019
1 parent 59ccd43 commit b849422
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scraper.py
Expand Up @@ -14,7 +14,10 @@
matchedlinks=root.cssselect("li p a")
# print(matchedlinks)
record={}
for li in matchedlinks[:100]:
counter=100
for li in matchedlinks[100:200]:
counter=counter+1
print(counter)
listtext=li.text_content()
print(listtext.encode('utf-8'))
record['address'] = listtext
Expand Down

0 comments on commit b849422

Please sign in to comment.