Commit Graph

432 Commits

Author SHA1 Message Date
Akash
cd9841713c
Update wrapper.py 2020-07-22 10:52:43 +05:30
AntiCompositeNumber
1ea9548d46
Raise WaybackError from URLError and include URL (#19)
* Raise WaybackError from URLError and include URL

* python2 compatibility

Co-authored-by: Akash <64683866+akamhy@users.noreply.github.com>
2020-07-22 10:51:44 +05:30
AntiCompositeNumber
be7642c837
Code style improvements (#20)
* Add sane line length to setup.cfg

* Use Black for quick readability improvements

* Clean up exceptions, docstrings, and comments

Docstrings on dunder functions are redundant and typically ignored
Limit to reasonable line length
General grammar and style corrections
Clarify docstrings and exceptions
Format docstrings per PEP 257 -- Docstring Conventions

* Move archive_url_parser out of Url.save()

It's generally poor form to define a function in a function, as it will
be re-defined each time the function is run.

archive_url_parser does not depend on anything in Url, so it makes sense
to move it out of the class.

* move wayback_timestamp out of class, mark private functions

* DRY in _wayback_timestamp

* Url._url_check should return None

There's no point in returning True if it's never checked and won't ever
be False.
Implicitly returning None or raising an exception is more idiomatic.

* Default parameters should be type-consistant with expected values

* Specify parameters to near

* Use datetime.datetime in _wayback_timestamp

* cleanup __init__.py

* Cleanup formatting in tests

* Fix names in tests

* Revert "Use datetime.datetime in _wayback_timestamp"

This reverts commit 5b30380865.

Introduced unnecessary complexity

* Move _get_response outside of Url

Because Codacy reminded me that I missed it.

* fix imports in tests
2020-07-22 10:09:14 +05:30
Akash
a418a4e464
Update SECURITY.md 2020-07-21 10:38:41 +05:30
Akash
aec035ef1e
Create SECURITY.md 2020-07-21 08:41:07 +05:30
Akash
6d37993ab9
moved to manuals 2020-07-21 08:14:40 +05:30
Akash
72b80ca44e
Create pypi_uploader.sh 2020-07-21 08:14:21 +05:30
Akash
c10aa9279c
Create python-publish.yml 2020-07-21 08:08:55 +05:30
Akash
68d809a7d6
Update test_1.py 2020-07-20 23:45:49 +05:30
Akash
4ad09a419b
Fix bash syntax 2020-07-20 23:44:23 +05:30
Akash
ddc6620f09
Only report coverage if python 3.8 or greater 2020-07-20 23:29:54 +05:30
Akash
4066a65678
Update .travis.yml 2020-07-20 23:20:43 +05:30
Akash
8e46a9ba7a
Update .travis.yml 2020-07-20 23:16:33 +05:30
Akash
a5a98b9b00
Update .travis.yml 2020-07-20 23:11:56 +05:30
Akash
a721ab7d6c
Update .travis.yml 2020-07-20 23:10:06 +05:30
Akash
7db27ae5e1
Create pypi_uploader.sh 2020-07-20 22:28:35 +05:30
Akash
8fd4462025
Update wrapper.py 2020-07-20 20:17:18 +05:30
Akash
c458a15820
Update .travis.yml 2020-07-20 15:38:33 +05:30
Akash
bae3412bee
Update .travis.yml 2020-07-20 15:24:26 +05:30
Akash
94cb08bb37
Update setup.py 2020-07-20 10:41:00 +05:30
Akash
af888db13e
2.1.2 2020-07-20 10:40:37 +05:30
Akash
d24f2408ee
Update test_1.py 2020-07-20 10:31:47 +05:30
Akash
ddd2274015
Update test_1.py 2020-07-20 10:21:15 +05:30
Akash
99abdb7c67
Update test_1.py 2020-07-20 10:16:39 +05:30
Akash
f3bb9a8540
Update wrapper.py 2020-07-20 10:11:36 +05:30
Akash
bb94e0d1c5
Update index.rst and remove dupes 2020-07-20 10:07:31 +05:30
Akash
1a78d88be2
2.1.1 2020-07-19 23:17:01 +05:30
Akash
3ec61758b3
Update __version__.py 2020-07-19 23:16:13 +05:30
Akash
83c962166d
Raise 2020-07-19 23:02:04 +05:30
Akash
e87dee3bdf
Waybackpy example on replit (#15)
* Waybackpy save example on replit

* Oldest example

* Newest method replit link

* Near method example

* Get example

* Total archive method example
2020-07-19 22:28:08 +05:30
Akash
b27bfff15a
v2.1.0 2020-07-19 21:08:01 +05:30
Akash
970fc1cd08
Update __version__.py 2020-07-19 21:06:54 +05:30
Akash
65391bf14b
update 2020-07-19 21:04:32 +05:30
Akash
8ab116f276
API chnaged again. updated
* Update wrapper.py

* Update wrapper.py

* Update wrapper.py

* Update wrapper.py

* Update wrapper.py

* api changed; fix archive url parser

* Update wrapper.py

* - Trailing whitespace

* include the header in exception
2020-07-19 20:39:07 +05:30
Akash
6f82041ec9
Update README.md (#13)
* Update README.md

* Update README.md

* replit demo for waybackpy.Url.save()

* Update README.md

* Update README.md

* replit demo for oldest()

* replit demo for newest()

* Update README.md

* replit demo for total_archives

* demo at replit for get()

* demo for near

* Update README.md

* Update README.md

* Update README.md
2020-07-19 16:39:39 +05:30
Akash
11059c960e
Update setup.py 2020-07-18 19:27:04 +05:30
Akash
eee1b8eba1
Update __version__.py 2020-07-18 19:26:41 +05:30
Akash
f7de8f5575
sleeps to prevent too many requests in a timeframe 2020-07-18 19:25:19 +05:30
Akash
3fa0c32064
V2.0.1 link 2020-07-18 19:09:18 +05:30
Akash
aa1e3b8825
V2.0.1 2020-07-18 19:08:39 +05:30
Akash
58d2d585c8
No timeout for final try 2020-07-18 18:29:41 +05:30
Akash
e8efed2e2f
Update test_1.py 2020-07-18 17:24:54 +05:30
Akash
49089b7321
2.0.0 link 2020-07-18 17:09:07 +05:30
Akash
55d8687566
Update test_1.py 2020-07-18 16:58:23 +05:30
Akash
0fa28527af
Update index.rst 2020-07-18 16:54:07 +05:30
Akash
68259fd2d9
Update index.rst 2020-07-18 16:53:27 +05:30
Akash
e7086a89d3
Update index.rst 2020-07-18 16:52:37 +05:30
Akash
e39467227c
Update index.rst 2020-07-18 16:51:47 +05:30
Akash
ba840404cf
Update index.rst 2020-07-18 16:50:37 +05:30
Akash
8fbd2d9e55
Update index.rst 2020-07-18 16:49:03 +05:30