I am using scrapy 1.7.3 with crawlera (C100 plan from scrapinghub) and python 3.6.
When running the spider with crawlera enabled I get about 20 - 40 items per minute. Without crawlera I get 750 - 1000 (but I get banned quickly of course).
Have I configured something wrong? With crawlera I should be getting at least 150 - 300 items per minute, no? Autothrottle is disabled.
Below you see my spider and part of my settings.py for the spider.
import scrapy
from ecom.items import EcomItem
class AmazonSpider(scrapy.Spider):
name = "amazon_products"
start_urls = ["https://www.amazon.fr/gp/browse.html?node=3055095031&rh=p_76:1&page=2"]
def parse(self, response):
product_urls = response.xpath("//a[@class='a-link-normal s-access-detail-page s-color-twister-title-link a-text-normal']/@href").extract()
for product_url in product_urls:
yield response.follow(product_url, self.parse_product)
def parse_product(self, response):
item = EcomItem()
item["url"] = response.url
yield item
settings.py
CRAWWLERA_PRESERVE_DELAY = 0
CONCURRENT_REQUESTS = 80
CONCURRENT_REQUESTS_PER_DOMAIN = 80
DOWNLOAD_TIMEOUT = 20
LOG_LEVEL = 'ERROR'
RANDOMIZE_DOWNLOAD_DELAY = True
DOWNLOAD_DELAY = 0
AUTOTHROTTLE_DEBUG = False
AUTOTHROTTLE_MAX_DELAY = 4
AUTOTHROTTLE_START_DELAY = 0
AUTOTHROTTLE_ENABLED = False
COOKIES_ENABLED = False