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

Add visit time parsing feature #40

Merged
merged 3 commits into from
Aug 8, 2023
Merged

Add visit time parsing feature #40

merged 3 commits into from
Aug 8, 2023

Conversation

VMRuiz
Copy link
Contributor

@VMRuiz VMRuiz commented Aug 8, 2023

Fixes #39

Added a new Namedtuple VisitTime with fields start_time, start_time that contains the allowed visit time if any.

I didn't want automatically validation of Visit-Time to can_fetch as it wouldn't be backward compatibility, so for now, it has to be manually by the user.

@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #40 (e69947b) into master (907d62f) will decrease coverage by 0.49%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master      #40      +/-   ##
==========================================
- Coverage   98.35%   97.87%   -0.49%     
==========================================
  Files           1        1              
  Lines         304      329      +25     
  Branches       78       83       +5     
==========================================
+ Hits          299      322      +23     
- Misses          3        4       +1     
- Partials        2        3       +1     
Files Changed Coverage Δ
src/protego.py 97.87% <92.85%> (-0.49%) ⬇️

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@Gallaecio Gallaecio merged commit e820917 into scrapy:master Aug 8, 2023
7 of 8 checks passed
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.

Support for visit-time
2 participants