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
This commit is contained in:
Akash
2020-07-22 16:40:13 +05:30
committed by GitHub
parent 3bfc3b46d0
commit dee9105794
5 changed files with 109 additions and 14 deletions

View File

@@ -89,7 +89,7 @@ class Url:
header = _get_response(req).headers
return "https://" + _archive_url_parser(header)
def _get(self, url="", user_agent="", encoding=""):
def get(self, url="", user_agent="", encoding=""):
"""Return the source code of the supplied URL.
If encoding is not supplied, it is auto-detected from the response.
"""