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 0c5567e commit 3a80489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -116,7 +116,6 @@ def scrape_and_look_for_next_link(url):
scrape_table(root)
next_url = base_url+'GetCaseInformation.aspx?db=garfield&number=CF-2011-'+str(i)
print next_url
global i
i = (i + 1)
scrape_and_look_for_next_link(next_url)

Expand All @@ -127,6 +126,7 @@ def scrape_and_look_for_next_link(url):
base_url = 'http://www.oscn.net/dockets/'
starting_url = urlparse.urljoin(base_url, 'GetCaseInformation.aspx?db=garfield&number=CF-2011-1')
print starting_url
global i
for i in range(1,744):
scrape_and_look_for_next_link(starting_url)

Expand Down

0 comments on commit 3a80489

Please sign in to comment.