waybackpy/tests
Akash Mahanty f990b93f8a
Add sort, use_pagination and closest (#158)
* add sort param support in CDX API class

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 https://github.com/akamhy/waybackpy/issues/155

* add BlockedSiteError for cases when archiving is blocked by site's robots.txt

* create check_for_blocked_site for handling the BlockedSiteError for sites that are blocking wayback machine by their robots.txt policy

* add attrs use_pagination and closest, which are can be used to use the 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.

* added cli support for sort, use-pagination and closest

* added tests

* fix codeql warnings, nothing to worry about here.

* fix save test for archive_url
2022-02-18 00:24:14 +05:30
..
__init__.py Make modules imprtable as part of a Python package, waybackpy by creating __init__.py file in tests 2022-01-23 02:14:38 +05:30
test_availability_api.py Fix comparison constant position (#145) 2022-02-08 10:06:23 +05:30
test_cdx_api.py Add sort, use_pagination and closest (#158) 2022-02-18 00:24:14 +05:30
test_cdx_snapshot.py Typing (#128) 2022-02-05 03:23:36 +09:00
test_cdx_utils.py add sort param support in CDX API class (#156) 2022-02-17 12:17:23 +05:30
test_cli.py apply isort 2022-02-09 11:20:59 +05:30
test_save_api.py Add sort, use_pagination and closest (#158) 2022-02-18 00:24:14 +05:30
test_utils.py fix imports with isort 2022-02-09 16:18:25 +05:30
test_wrapper.py Add sort, use_pagination and closest (#158) 2022-02-18 00:24:14 +05:30