Skip to content

Commit

Permalink
raise AUTOTHROTTLE_TARGET_CONCURRENCY for jobscz
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed May 3, 2024
1 parent 5d98f39 commit 985c6d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jg/plucker/jobs_jobscz/spider.py
Expand Up @@ -67,6 +67,9 @@
class Spider(BaseSpider):
name = "jobs-jobscz"

custom_settings = {
"AUTOTHROTTLE_TARGET_CONCURRENCY": 2,
}
start_urls = [
"https://beta.www.jobs.cz/prace/programator/",
"https://beta.www.jobs.cz/prace/tester/",
Expand Down
1 change: 0 additions & 1 deletion jg/plucker/jobs_linkedin/spider.py
Expand Up @@ -29,7 +29,6 @@ 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: 2 additions & 0 deletions jg/plucker/settings.py
Expand Up @@ -30,6 +30,8 @@

CLOSESPIDER_ERRORCOUNT = 1

AUTOTHROTTLE_ENABLED = True

TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"

PLAYWRIGHT_BROWSER_TYPE = "firefox"
Expand Down

0 comments on commit 985c6d7

Please sign in to comment.