Skip to content

Commit

Permalink
use autothrottle only for LI
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed May 3, 2024
1 parent 4a0751b commit 5d98f39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions jg/plucker/jobs_linkedin/spider.py
Expand Up @@ -29,6 +29,7 @@ class Spider(BaseSpider):
name = "jobs-linkedin"
download_delay = 5
custom_settings = {
"AUTOTHROTTLE_ENABLED": True,
"DOWNLOAD_HANDLERS": {
"http": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
"https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
Expand Down
2 changes: 0 additions & 2 deletions jg/plucker/settings.py
Expand Up @@ -30,8 +30,6 @@

CLOSESPIDER_ERRORCOUNT = 1

AUTOTHROTTLE_ENABLED = True

TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"

PLAYWRIGHT_BROWSER_TYPE = "firefox"
Expand Down

0 comments on commit 5d98f39

Please sign in to comment.