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 sort, use_pagination and closest #158

Merged
merged 8 commits into from
Feb 17, 2022
Merged

Add sort, use_pagination and closest #158

merged 8 commits into from
Feb 17, 2022

Conversation

akamhy
Copy link
Owner

@akamhy akamhy commented Feb 17, 2022

closes #157

see https://nla.github.io/outbackcdx/api.html#operation/query

sort takes string input which must be one of the follwoing:
- default
- closest
- reverse

This commit shall help in closing issue at #155
…ites that are blocking wayback machine by their robots.txt policy
…e pagination API and lookup archive close to a timestamp respectively. And now to get out of infinte blank pages loop just check for two succesive black and not total two blank pages while using the CDX server API.
@pep8speaks
Copy link

Hello @akamhy! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 54:9: W503 line break before binary operator
Line 55:9: W503 line break before binary operator

Line 281:5: W503 line break before binary operator
Line 303:5: W503 line break before binary operator

@akamhy akamhy added the enhancement New feature or request label Feb 17, 2022
@codecov
Copy link

codecov bot commented Feb 17, 2022

Codecov Report

Merging #158 (e94da0c) into master (f63c6ad) will increase coverage by 1.21%.
The diff coverage is 88.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #158      +/-   ##
==========================================
+ Coverage   94.24%   95.45%   +1.21%     
==========================================
  Files          10       10              
  Lines         608      638      +30     
==========================================
+ Hits          573      609      +36     
+ Misses         35       29       -6     
Impacted Files Coverage Δ
waybackpy/cdx_api.py 92.59% <82.35%> (+2.39%) ⬆️
waybackpy/cdx_utils.py 96.29% <88.88%> (-2.15%) ⬇️
waybackpy/cli.py 95.29% <100.00%> (+0.17%) ⬆️
waybackpy/exceptions.py 100.00% <100.00%> (ø)
waybackpy/wrapper.py 92.53% <0.00%> (+8.95%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f63c6ad...e94da0c. Read the comment docs.

@akamhy akamhy merged commit f990b93 into master Feb 17, 2022
@akamhy akamhy deleted the add-sort-in-cdx branch February 17, 2022 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CDX API handling of excluded from the Wayback Machine URLs
2 participants