Commit Graph
212 Commits
Author SHA1 Message Date
AkashandGitHub 36d662b961 Update __version__.py 2.1.6 2020-07-24 16:24:57 +05:30
AkashandGitHub 2835f8877e Update setup.py 2020-07-24 16:24:38 +05:30
AkashandGitHub 18cbd2fd30 Update cli.py 2020-07-24 16:10:29 +05:30
AkashandGitHub a2812fb56f patch for cli 2020-07-24 16:09:47 +05:30
AkashandGitHub 77effcf649 Update setup.py 2.1.5 2020-07-24 15:34:14 +05:30
AkashandGitHub 7272ef45a0 Update __version__.py 2020-07-24 15:33:58 +05:30
AkashandGitHub 56116551ac Coverge improvements (#22)
* Update cli.py

* improved tests

* chnages for proper testing

* Type check using isinstance

* Replace elifs with if when used after return

* twitter.com --> www.ibm.com

* fix typo

* test archive urll parser and dunders

* Update test_wrapper.py
2020-07-24 15:31:21 +05:30
AkashandGitHub 4dcda94cb0 v2.1.4 2.1.4 2020-07-24 01:03:44 +05:30
AkashandGitHub 09f59b0182 v2.1.4 2020-07-24 01:03:04 +05:30
Akash ed24184b99 Remove duplicate get response method 2020-07-24 00:57:22 +05:30
AkashandGitHub 56bef064b1 only test save on >3.7 2020-07-23 20:51:46 +05:30
AkashandGitHub 44bb2cf5e4 some cli tests 2020-07-23 20:44:14 +05:30
AkashandGitHub e231228721 Update README.md (#21)
* Update README.md

* example bash oldest newest

* total archives bash example

* near bash example

* format the list

* ce

* get bash example

* pip git install example

* Update index.rst

* + argparse

* + argparse
2.1.3
2020-07-22 21:35:02 +05:30
AkashandGitHub b8b2d6dfa9 v2.1.3 2020-07-22 20:21:37 +05:30
AkashandGitHub 3eca6294df v2.1.3 2020-07-22 20:20:44 +05:30
AkashandGitHub eb037a0284 Rename test_1.py to test_wrapper.py 2020-07-22 20:19:59 +05:30
AkashandGitHub a01821f20b Update .travis.yml 2020-07-22 17:33:59 +05:30
AkashandGitHub b21036f8df Update .travis.yml 2020-07-22 17:31:57 +05:30
AkashandGitHub b43bacb7ac fix error language 2020-07-22 17:25:15 +05:30
AkashandGitHub f7313b255a Update cli.py 2020-07-22 17:22:38 +05:30
AkashandGitHub 7457e1c793 - print(repr(obj)) 2020-07-22 17:18:27 +05:30
AkashandGitHub f7493d823f Update cli.py 2020-07-22 17:16:53 +05:30
AkashandGitHub 7fa7b59ce3 if version don't try to create object 2020-07-22 17:15:28 +05:30
AkashandGitHub 78a608db50 Update cli.py 2020-07-22 17:12:44 +05:30
AkashandGitHub 93f7dfdaf9 resolve args conflict 2020-07-22 17:09:32 +05:30
AkashandGitHub 83c6f256c9 version arg 2020-07-22 17:03:56 +05:30
AkashandGitHub dee9105794 command_line support (#18)
* Update wrapper.py

* entry points cli

* Suppress the urllib2/3 Exception

* rm cli code, will create a new cli.py file

* Create cli.py

* update cli entry pts

* Update cli.py

* Update cli.py

* import print_function

* Update cli.py

* Update cli.py

* Delete pypi_uploader.sh

* resolve conflicts with the master

* update the test ; resolve the conflicts

* decrease code complexity

* cli method changed to main

* get is not for just local usage

* get method should be available from interface

* get is used in the interface

* Update cli.py
2020-07-22 16:40:13 +05:30
AkashandGitHub 3bfc3b46d0 Delete SECURITY.md 2020-07-22 11:07:59 +05:30
AkashandGitHub 553f150bee replace youtube with twitter.com
for some reason Wayback API is returing diffrent youtube URL now.
2020-07-22 11:07:23 +05:30
AkashandGitHub b3a7e714a5 Update wrapper.py 2020-07-22 10:57:43 +05:30
AkashandGitHub cd9841713c Update wrapper.py 2020-07-22 10:52:43 +05:30
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
AntiCompositeNumberandGitHub 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
AkashandGitHub a418a4e464 Update SECURITY.md 2020-07-21 10:38:41 +05:30
AkashandGitHub aec035ef1e Create SECURITY.md 2020-07-21 08:41:07 +05:30
AkashandGitHub 6d37993ab9 moved to manuals 2020-07-21 08:14:40 +05:30
AkashandGitHub 72b80ca44e Create pypi_uploader.sh 2020-07-21 08:14:21 +05:30
AkashandGitHub c10aa9279c Create python-publish.yml 2020-07-21 08:08:55 +05:30
AkashandGitHub 68d809a7d6 Update test_1.py 2020-07-20 23:45:49 +05:30
AkashandGitHub 4ad09a419b Fix bash syntax 2020-07-20 23:44:23 +05:30
AkashandGitHub ddc6620f09 Only report coverage if python 3.8 or greater 2020-07-20 23:29:54 +05:30
AkashandGitHub 4066a65678 Update .travis.yml 2020-07-20 23:20:43 +05:30
AkashandGitHub 8e46a9ba7a Update .travis.yml 2020-07-20 23:16:33 +05:30
AkashandGitHub a5a98b9b00 Update .travis.yml 2020-07-20 23:11:56 +05:30
AkashandGitHub a721ab7d6c Update .travis.yml 2020-07-20 23:10:06 +05:30
AkashandGitHub 7db27ae5e1 Create pypi_uploader.sh 2020-07-20 22:28:35 +05:30
AkashandGitHub 8fd4462025 Update wrapper.py 2020-07-20 20:17:18 +05:30
AkashandGitHub c458a15820 Update .travis.yml 2020-07-20 15:38:33 +05:30
AkashandGitHub bae3412bee Update .travis.yml 2020-07-20 15:24:26 +05:30
AkashandGitHub 94cb08bb37 Update setup.py 2.1.2 2020-07-20 10:41:00 +05:30