Commit Graph

1170 Commits

Author SHA1 Message Date
Arun Prakash Jana
c6a0ec7b0d
Show usage count of tags in listing. 2016-11-20 19:01:02 +05:30
Arun Prakash Jana
63bce1004d Store tags in lower case. 2016-11-20 12:46:23 +05:30
Arun Prakash Jana
e56c04a315
Handle exception if no tags in DB. 2016-11-20 11:11:09 +05:30
Arun Prakash Jana
36ac3aaca6 Update asciinema demo. 2016-11-20 00:40:58 +05:30
Arun Prakash Jana
94bd49aa37
Username and password support in proxy auth. 2016-11-18 22:06:09 +05:30
Arun Prakash Jana
1aee1232f7
Support only https_proxy. 2016-11-18 20:04:37 +05:30
Arun Prakash Jana
190097fe53 Merge pull request #96 from denisfalqueto/master
Support http proxy environment variables
2016-11-18 19:32:30 +05:30
Denis A. Altoé Falqueto
f734bf298f Support http proxy environment variables
If defined, the variables http_proxy, HTTP_PROXY, https_proxy or
HTTPS_PROXY will be used to create a proxied pool manager.

If the prefix https:// is used by the url, it will try to use
the corresponding proxy variables. If not defined, it will
fallback to http_proxy and HTTP_PROXY.

Signed-off-by: Denis A. Altoé Falqueto <denisfalqueto@gmail.com>
2016-11-17 10:20:10 -02:00
Arun Prakash Jana
d4358e113c Try with http if scheme is missing in URI.
urllib3 requests can work around this, e.g., google.com is resolved.
However, the browser fails if there's no scheme in the URI.
The observation is based on Google Chrome's behaviour.
So we try http://google.com.

Currently there is no way to override this (i.e. try the URI as it is). We'll
need to work on it if there a bug report on this 'forced' behaviour.
2016-11-16 21:37:23 +05:30
Arun Prakash Jana
8d71f033f2 Merge pull request #95 from carlos-am/master
Fix #94: Remove warning when adding HTTPS URL
2016-11-16 09:52:04 +05:30
carlosam
a34fe4bcaf Remove warning when adding HTTPS URL 2016-11-16 00:29:00 +00:00
Arun Prakash Jana
ee3309b154
Use uniform error messages at prompt. 2016-11-15 21:14:26 +05:30
Arun Prakash Jana
e50fb21974 Use a single error string everywhere. 2016-11-15 19:40:28 +05:30
Arun Prakash Jana
de7d1cd463 Open bookmarks by tag list index at prompt 2016-11-15 19:27:16 +05:30
Arun Prakash Jana
31af6ee38e Remove deep search option as a class member. Update help. 2016-11-15 00:12:23 +05:30
Arun Prakash Jana
97c3500138 Add prompt help. Reformat program help. 2016-11-14 23:54:05 +05:30
Arun Prakash Jana
7f75706523
Reverse color at concise prompt. 2016-11-14 00:10:47 +05:30
Arun Prakash Jana
0e936c13a4
Continuous search at prompt. New key q to quit. 2016-11-13 23:22:00 +05:30
Arun Prakash Jana
8441cebd50
Handle regex search independently. 2016-11-13 14:33:19 +05:30
Arun Prakash Jana
32b25e3d4f
Override feed(), remove redundant API to reset parser. 2016-11-13 00:02:38 +05:30
Arun Prakash Jana
299d95aa45 Documentation update. 2016-11-12 23:37:10 +05:30
Arun Prakash Jana
03b351b11e Add URL shortening support. 2016-11-12 21:20:23 +05:30
Arun Prakash Jana
5e0bc15e28
Support custom db file. Optimizations. 2016-11-12 08:08:28 +05:30
Arun Prakash Jana
b387fc95e1
Use user-agent. Simply network_handler(). 2016-11-09 22:44:31 +05:30
Arun Prakash Jana
22bec5871d Modify strings for MIME HEAD fetch 2016-11-09 01:59:02 +05:30
Arun Prakash Jana
b418b95099
Use only one instance of BHTMLParser 2016-11-09 01:13:53 +05:30
Arun Prakash Jana
fd30317265
Make page title a parser member. Rename variables. 2016-11-09 00:22:34 +05:30
Arun Prakash Jana
d521460bdc
top level domains can have 1 to 24 characters. 2016-11-08 23:43:32 +05:30
Arun Prakash Jana
809e6d155a
Use small b in ascii color code 2016-11-08 23:10:16 +05:30
Arun Prakash Jana
ac645e8140
Handle bad URLs, fetch only HEAD for known mimes
Add API to check URL validity
Add API to detect URLs to some non-page mimes which sans title
network_handler() returns more meaningful tuple
Handle interrupt during multiple indices and/or range update
With urllib3 URLs without preceding http(s) can be handled
2016-11-08 23:02:45 +05:30
Arun Prakash Jana
c40cd302bf Show only error and skipped if --tacit is used 2016-11-08 12:15:39 +05:30
Arun Prakash Jana
c80a5a8e82 Remove redundant retry count 2016-11-08 11:15:24 +05:30
Arun Prakash Jana
fabdc773b6 Use requests module for upstream version check
The requests module uses urllib3 internally.
2016-11-08 10:58:24 +05:30
Arun Prakash Jana
0b819944b8
Remove move_legacy_dbfile() API. We have mergedb(). 2016-11-08 08:45:11 +05:30
Arun Prakash Jana
15892e9eea
Fix markdown import issue with URL having brackets:wq. 2016-11-08 01:56:03 +05:30
Arun Prakash Jana
a7d3ce89a0 Remove metavar param, shorten argparse.SUPPRESS. 2016-11-07 23:28:54 +05:30
Arun Prakash Jana
ed01edf9fb
Remove option --st, redundant 'dest' in addarg. 2016-11-07 23:05:02 +05:30
Arun Prakash Jana
f314a19e8b
Use urllib3 to fetch titles and more...
Do not fetch title for txt and PDF links.
Disable logging.WARNING if debug mode is not enabled.
Support deflate compression.
2016-11-07 20:43:08 +05:30
Arun Prakash Jana
ca076788e5 Merge pull request #90 from shaggytwodope/master
gitignore for pypi related files
2016-11-07 01:23:07 +05:30
Johnathan Jenkins
07bee8dc4f Merge branch 'master' of https://github.com/jarun/Buku 2016-11-06 11:50:24 -08:00
Johnathan Jenkins
3a9dc660a3 gitignore for pypi related files 2016-11-06 11:50:15 -08:00
Arun Prakash Jana
92093cfc63 1. Check for None resp before logging.
2. Update help
3. Show successful update in green in refreshdb()
2016-11-07 01:20:06 +05:30
Arun Prakash Jana
59a1e12fbe Check for None resp before logging. 2016-11-07 01:19:08 +05:30
Arun Prakash Jana
740a4a68ac
Update help. 2016-11-07 00:56:35 +05:30
Arun Prakash Jana
3ae66ea897 Merge branch 'asergi-setup-py' 2016-11-07 00:48:54 +05:30
Arun Prakash Jana
80413987d7 Merge branch 'setup-py' of https://github.com/asergi/Buku into asergi-setup-py 2016-11-07 00:48:39 +05:30
Arun Prakash Jana
41f256b217
Improve HTTP status handling. 2016-11-07 00:41:36 +05:30
Alessio Sergi
4cf02b9fa9 Add setup.py for installation as a system tool. 2016-11-06 19:44:44 +01:00
Arun Prakash Jana
10b2439093 Move some logs to debug level. 2016-11-06 23:54:39 +05:30
Arun Prakash Jana
53ea595bbe Make verbosity a class property. 2016-11-06 21:45:43 +05:30