我在我的 Scrapy-Selenium Crawler 中使用Crawlera 。
但我只需要使用来自法国的 IP 。
如何配置我的 crawlera 来做到这一点。
custom_settings = {
'DOWNLOADER_MIDDLEWARES' : {'scrapy_crawlera.CrawleraMiddleware': 600},
'CRAWLERA_ENABLED' : True,
'CRAWLERA_APIKEY' : //my appikey,
'DOWNLOAD_DELAY' : 0,
'COOKIES_ENABLED' : True,
}