Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mostcount committed Dec 24, 2015
1 parent 33a0ae1 commit 2f2488b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scraper.py
Expand Up @@ -6,7 +6,10 @@
from multiprocessing import cpu_count
import grequests

start_urls = ['http://www.amazon.com/best-sellers-camera-photo/zgbs/photo/ref=zg_bs_nav_0']
start_urls = ['http://www.amazon.com/Best-Sellers-Arts-Crafts-Sewing/zgbs/arts-crafts/ref=zg_bs_nav_0',
'http://www.amazon.com/Best-Sellers-Home-Kitchen/zgbs/home-garden/ref=zg_bs_nav_0',
'http://www.amazon.com/Best-Sellers-Office-Products/zgbs/office-products/ref=zg_bs_nav_0',
'http://www.amazon.com/Best-Sellers-Industrial-Scientific/zgbs/industrial/ref=zg_bs_nav_0']
pool = Pool(cpu_count() * 20)

def scrape(response, **kwargs):
Expand Down

0 comments on commit 2f2488b

Please sign in to comment.