Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per request delay implementation using request per_request_delay meta key #802 #3835

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GeorgeA92
Copy link
Contributor

Changes in this PR provide possibility to set per request delays (as it explained in this #802 (comment))

 ....
    next =  response.css("li.next a ::attr(href)").extract_first()
    if next:
        yield scrapy.Request(url=response.urljoin(next),
                             callback=self.parse, meta={"per_request_delay": 3})

@codecov
Copy link

codecov bot commented Jun 17, 2019

Codecov Report

Merging #3835 into master will increase coverage by 0.00%.
The diff coverage is 33.33%.

@@           Coverage Diff           @@
##           master    #3835   +/-   ##
=======================================
  Coverage   85.43%   85.44%           
=======================================
  Files         169      169           
  Lines        9649     9664   +15     
  Branches     1437     1441    +4     
=======================================
+ Hits         8244     8257   +13     
- Misses       1157     1158    +1     
- Partials      248      249    +1     
Impacted Files Coverage Δ
scrapy/core/downloader/__init__.py 87.85% <33.33%> (-1.20%) ⬇️
scrapy/utils/reqser.py 94.11% <0.00%> (+1.80%) ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants