Skip to content

Commit

Permalink
Create scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
walinchus committed Jun 14, 2017
1 parent 36f8c61 commit 70b2839
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scraper.py
Expand Up @@ -108,10 +108,9 @@ def scrape_table(root):
return next_link
print next_link'''

global next_link
next_link = 0

def scrape_and_look_for_next_link(url):
for i in range(1,744):
for next_link in range(1,744):
html = scraperwiki.scrape(url)
#print html
root = lxml.html.fromstring(html)
Expand All @@ -120,7 +119,6 @@ def scrape_and_look_for_next_link(url):
#print next_link
#Add_Case_No()
#print next_link
next_link= next_link + i
print next_link
next_url = base_url+'GetCaseInformation.aspx?db=garfield&number=CF-2011-'+str(next_link)
print next_url
Expand Down

0 comments on commit 70b2839

Please sign in to comment.