Arun Prakash Jana
ca95fa9d59
Import functionality.
2016-05-23 02:33:47 +05:30
Arun Prakash Jana
ff77bba378
Modify add and update to accept tags as a string.
2016-05-23 01:54:24 +05:30
Arun Prakash Jana
27ef1c9df5
global independent add_bookmark().
2016-05-23 01:03:24 +05:30
Arun Prakash Jana
53da73b8db
Remove insert bookmark operation.
2016-05-23 00:50:50 +05:30
Arun Prakash Jana
c68ddf6ebd
Change version to a string.
2016-05-22 23:20:19 +05:30
Arun Prakash Jana
41281943f5
Rename function names (by PEP 8)
...
Rename function names (by PEP 8)
2016-05-22 20:45:19 +05:30
Arun Prakash Jana
e4692a5402
Edit options in new help and man section
...
More accurate update description
2016-05-21 23:04:51 +05:30
Arun Prakash Jana
8ca31e6ce8
Emphasis on --url option works with -u only.
2016-05-21 18:45:56 +05:30
toyg
ab65c94dfe
removed globals from updateEntry and slight formatting
2016-05-21 11:40:37 +01:00
Arun Prakash Jana
af252299f3
--tag works with -a and -u.
2016-05-21 12:44:07 +05:30
toyg
7277d7d9a0
refactored to object. Still lots of globals to fix.
2016-05-20 23:05:25 +01:00
Arun Prakash Jana
493149942d
Update help.
2016-05-20 23:56:01 +05:30
Arun Prakash Jana
687f15a325
Retry on HTTP error 403 (Forbidden).
...
The servers return 403 when / is the path.
Examples:
http://my.lovelycharts.com
http://my.lovelycharts.com/
2016-05-20 22:31:03 +05:30
Arun Prakash Jana
e39e2621d5
Handle domain name-only URL without trailing /
...
https://www.google.co.in fails.
Surprisingly, http://www.google.com worked!
2016-05-20 20:45:52 +05:30
Arun Prakash Jana
e800ae909a
Bump version.
2016-05-20 19:11:49 +05:30
Arun Prakash Jana
6ca2f27492
New title update logic:
...
1. if -t has no arguments, delete existing title
2. if -t has arguments, update existing title
3. if -t option is omitted at cmdline:
if URL is passed, update the title from web using the URL
4. if no other argument (url, tag, comment) passed update title from web using DB URL
2016-05-20 18:59:01 +05:30
Arun Prakash Jana
468c1ef29d
Update API to handle each option separately.
2016-05-20 09:18:12 +05:30
Arun Prakash Jana
f6961376e8
Check if isolated delimiter starts tag.
2016-05-19 23:13:45 +05:30
Arun Prakash Jana
61ab239351
Fix issue #12 .
2016-05-19 20:24:50 +05:30
Arun Prakash Jana
31a46e041a
Better tag processing while saving to DB.
...
1. handle isolated comma in tags
2. handle leading comma
3. select unique tags
4. sort tags
2016-05-19 19:54:18 +05:30
Arun Prakash Jana
e300b186ef
Separate out add and update.
2016-05-19 18:03:14 +05:30
Arun Prakash Jana
e4c1b95121
remove multiple declarations in replaceTag
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-05-19 12:13:23 +05:30
Arun Prakash Jana
48c1aaf765
Disable formatting in printmsg
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
Fix formatted space
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-05-19 12:04:32 +05:30
Arun Prakash Jana
8c7ef3ec34
Add comment in Json output.
2016-05-19 00:45:57 +05:30
Arun Prakash Jana
7f0dbd972c
Show tags moved from -S to --st.
2016-05-18 22:53:08 +05:30
Arun Prakash Jana
90fd6cbd8c
Help on --st --stag.
2016-05-18 21:36:54 +05:30
Arun Prakash Jana
62dad74af0
Initial search by tag implementation.
2016-05-18 21:16:08 +05:30
Arun Prakash Jana
1b6c46fd1c
Use man page.
...
Update README.md
Update buku.1
2016-05-18 10:28:50 +05:30
Arun Prakash Jana
8419f4ac79
Prettier output using symbols
2016-05-18 04:05:01 +05:30
Arun Prakash Jana
c252981bd2
Support comment on bookmarks
2016-05-18 01:41:31 +05:30
Arun Prakash Jana
cb48798c3d
Revert non-stop search
2016-05-17 21:27:12 +05:30
Arun Prakash Jana
b0eea5a17c
Support continuous search.
2016-05-17 02:57:36 +05:30
Arun Prakash Jana
e2d2904ca7
Optimize search result display.
2016-05-16 23:00:47 +05:30
Arun Prakash Jana
529c3dd666
Reduce spacing.
2016-05-16 20:09:01 +05:30
Arun Prakash Jana
394d9db99f
Fix typo.
2016-05-15 15:11:37 +05:30
Arun Prakash Jana
ebf32f63eb
Add fish auto-completion file.
2016-05-15 11:33:02 +05:30
Arun Prakash Jana
ecb5e390d5
Remove textwrap dependency.
2016-05-14 21:03:21 +05:30
Arun Prakash Jana
7e13c5f8c5
Remove shutil dependency.
2016-05-14 20:59:03 +05:30
Arun Prakash Jana
9c4fabfd71
Late load optional json library.
2016-05-14 20:47:38 +05:30
Arun Prakash Jana
94cb0b01e7
Update buku
2016-05-12 14:28:31 +05:30
Arun Prakash Jana
1f83c66fa5
Catch exception if DB file encrypted or not SQLite.
2016-05-07 21:27:53 +05:30
Arun Prakash Jana
e4e70bdc86
Update comments.
2016-05-02 23:12:29 +05:30
Arun Prakash Jana
849862a7a9
Update license.
2016-05-02 22:52:26 +05:30
Arun Prakash Jana
384df72001
Warn if URL is not valid.
2016-05-01 23:19:02 +05:30
Arun Prakash Jana
f0e523bd48
Move utility function up.
2016-05-01 22:59:46 +05:30
Arun Prakash Jana
4acb6f8953
Function to close connection and quit program.
2016-05-01 22:12:42 +05:30
Arun Prakash Jana
29751d3ade
Remove redundant global.
2016-05-01 21:58:40 +05:30
Arun Prakash Jana
d48e88673c
Bump version.
2016-05-01 21:50:56 +05:30
Arun Prakash Jana
c315c6bb76
Update README and manpages with new options.
2016-05-01 10:03:21 +05:30
Arun Prakash Jana
f86bb4e741
Merge pull request #13 from jarun/argparse
...
Switch to argparse
2016-04-29 23:29:15 +05:30
Arun Prakash Jana
af35c6ef61
Support replace tags.
2016-04-29 22:59:06 +05:30
Arun Prakash Jana
99ebbac663
Omit title if -t is used without arguments.
2016-04-27 23:26:57 +05:30
Arun Prakash Jana
1549f51bf8
Grouped help.
2016-04-27 02:43:27 +05:30
Arun Prakash Jana
7affa00442
Group options.
2016-04-27 00:52:59 +05:30
Arun Prakash Jana
0a314a0ad4
Use appropriate short option for format.
2016-04-26 23:33:00 +05:30
Arun Prakash Jana
5c1105e950
title can have multiple tokens.
2016-04-26 22:53:48 +05:30
Arun Prakash Jana
045eec9467
Support piped input.
2016-04-26 21:43:02 +05:30
Arun Prakash Jana
e6b36ba892
Add input and output files. Remove old help.
2016-04-26 20:33:23 +05:30
Arun Prakash Jana
185ca828d1
Help re-format.
2016-04-26 04:25:49 +05:30
Arun Prakash Jana
aaa85e7857
A more uniform help.
2016-04-26 03:58:59 +05:30
Arun Prakash Jana
923b5b7e34
Reformat help.
2016-04-26 02:15:10 +05:30
Arun Prakash Jana
422a51705c
Merge -g and -e to -S.
2016-04-26 00:13:28 +05:30
Arun Prakash Jana
b4e4744b8d
Better help.
2016-04-25 23:46:13 +05:30
Arun Prakash Jana
892ad3a040
Add class comments, remove function comments.
2016-04-25 23:27:01 +05:30
Arun Prakash Jana
fc211b5d66
Add note on why insert is commented.
2016-04-25 23:03:07 +05:30
Arun Prakash Jana
c95d3a4339
Integrate iterations in encrypt/decrypt args.
2016-04-25 22:58:35 +05:30
Arun Prakash Jana
ff42af341f
Support update.
2016-04-25 21:53:03 +05:30
Arun Prakash Jana
fb2c886ec5
insert functional but deprecated by auto-compact.
2016-04-25 18:36:23 +05:30
Arun Prakash Jana
ef1ccfd59e
Push lesser option down.
2016-04-25 04:22:15 +05:30
Arun Prakash Jana
7a0d98e09f
Remove redundant variable.
2016-04-25 04:17:25 +05:30
Arun Prakash Jana
0fb89072d3
Support print function.
2016-04-25 03:35:46 +05:30
Arun Prakash Jana
58b8805b70
More options added to argparse.
2016-04-25 02:48:56 +05:30
Arun Prakash Jana
fbc8d25a89
Add check in compactDB for number of records.
2016-04-25 02:13:00 +05:30
Arun Prakash Jana
340f048d46
Support more options in argparse.
2016-04-25 02:03:59 +05:30
Arun Prakash Jana
3248120517
Introduce argparse.
2016-04-25 00:49:32 +05:30
Arun Prakash Jana
eae1a3bac9
Be more specific about keys.
2016-04-23 10:55:26 +05:30
Arun Prakash Jana
0d08254cf1
Newline for more clarity. Index in 3rd brackets.
2016-04-23 03:04:02 +05:30
Arun Prakash Jana
e99844876d
Define globals if crypto missing.
2016-04-23 00:11:41 +05:30
Arun Prakash Jana
96d4bd2303
Update help, add -r to man.
2016-04-22 22:31:17 +05:30
Arun Prakash Jana
1433a58b6a
Optimize full DB refresh.
2016-04-22 20:10:58 +05:30
Arun Prakash Jana
47e49fefb4
Update buku
2016-04-22 10:38:21 +05:30
Arun Prakash Jana
005ba51609
Update buku
2016-04-22 10:35:26 +05:30
Arun Prakash Jana
6ac4be61b6
Update buku
2016-04-22 10:23:38 +05:30
Arun Prakash Jana
2e220c7dda
Update buku
2016-04-22 09:43:20 +05:30
Arun Prakash Jana
d9aea1f8e5
Update buku
2016-04-22 09:41:10 +05:30
Arun Prakash Jana
c492ccf6c4
-u N refreshes page title at index N.
2016-04-22 08:42:17 +05:30
Arun Prakash Jana
eec5f7a7c0
Indentaiton fix.
2016-04-21 23:38:48 +05:30
Arun Prakash Jana
93862447b0
Delete refresh condition check.
2016-04-21 23:27:41 +05:30
Arun Prakash Jana
8e927877b2
Remove -R from parsing logic.
2016-04-21 23:24:37 +05:30
Arun Prakash Jana
247052390d
Removed -R. -R is now -u 0.
2016-04-21 23:18:42 +05:30
Arun Prakash Jana
e3b10b4d32
Fetch title by default.
2016-04-21 19:54:30 +05:30
Arun Prakash Jana
a051cdc8be
Merge -D with -d. Now -D is -d 0.
2016-04-20 21:23:12 +05:30
Arun Prakash Jana
b3675594e1
Help update.
2016-04-20 21:11:07 +05:30
Arun Prakash Jana
18c42dc9f4
Distinguish -s and -S.
2016-04-20 20:47:47 +05:30
Arun Prakash Jana
08fb03eec1
Merge -P with -p. Now -P is -p 0.
2016-04-20 20:40:36 +05:30
Arun Prakash Jana
a61376e4b9
Search modification: -s ANY, -S ALL in URL, title or tags
2016-04-20 00:02:28 +05:30
Arun Prakash Jana
7b1a37f216
Optimizations.
2016-04-19 22:32:15 +05:30
Arun Prakash Jana
340e6a9e7d
Fix spacing.
2016-04-19 21:10:52 +05:30
Arun Prakash Jana
ca0cc919b4
Use single print for help and info.
2016-04-19 21:07:24 +05:30
Arun Prakash Jana
459ed27a22
Fix typo.
2016-04-18 20:42:33 +05:30
Arun Prakash Jana
aba796e99e
Add Json output info in help.
2016-04-17 21:37:26 +05:30
lmessier
9bac67cf0c
clean
2016-04-17 16:45:29 +02:00
lmessier
d290dd7197
Merge remote-tracking branch 'upstream/master' into json-output
...
Conflicts:
README.md
buku
2016-04-17 16:31:40 +02:00
Arun Prakash Jana
d13a64102b
Declare encryption related globals if crypto is available.
2016-04-15 21:37:59 +05:30
Arun Prakash Jana
090951f270
debug information changes.
2016-04-14 19:34:02 +05:30
Arun Prakash Jana
401a482497
Spelling corrections.
2016-04-10 18:31:11 +05:30
Arun Prakash Jana
63604a9028
Remove all trailing spaces.
2016-04-10 18:11:00 +05:30
Arun Prakash Jana
74202db989
Document the newer functions.
2016-04-10 17:58:49 +05:30
Arun Prakash Jana
0cc172c4e0
Optimize add/insert: ensure URL is not in DB already.
2016-04-10 17:15:11 +05:30
Arun Prakash Jana
894b16a7ef
Implement function error() for HTMLParser
...
1. Handle EXCEPTION [getTitleData]: (NotImplementedError) subclasses of ParserBase must override error()
URL: http://www.mycplus.com/featured-articles/top-ten-c-language-resources/
2. Add a debug log to show if server supports gzip
2016-04-10 12:39:51 +05:30
Arun Prakash Jana
7bde1f7ec6
Suppress intentional Exception log from self.reset().
2016-04-10 10:37:16 +05:30
Arun Prakash Jana
116eb44224
Handle error status in HTTP response correctly.
2016-04-10 10:17:09 +05:30
Arun Prakash Jana
119a342d4d
Show type of Exception.
2016-04-09 23:09:00 +05:30
Arun Prakash Jana
a8d72c515b
More meaningful parameter name.
2016-04-09 19:40:30 +05:30
Arun Prakash Jana
d7b0f2483b
Retry with truncated URL on error 500 in HTTP response.
2016-04-09 19:13:12 +05:30
Arun Prakash Jana
5a1b9d17c4
Catchier exceptions, minor optimizations.
2016-04-09 18:41:46 +05:30
Arun Prakash Jana
e5ca44e251
Request gzip compressed data in HTTP(S) fetch.
2016-04-09 17:25:18 +05:30
Arun Prakash Jana
4c25e0b1c0
Handle URLs passed with %xx escape.
...
E.g.: "https://linuxreference.wordpress.com/2010/12/28/25-even-more-%E2%80%93-sick-linux-commands/ "
2016-04-09 14:52:31 +05:30
Arun Prakash Jana
b499daade4
Print exception messages.
2016-04-09 14:06:58 +05:30
Arun Prakash Jana
3cfca94031
Easily detect origin of Exception.
2016-04-09 13:25:59 +05:30
Arun Prakash Jana
fda91659a9
Update month, minor info print change.
2016-04-08 19:45:47 +05:30
Dmitry Marakasov
477be87f7c
Bump version
2016-04-08 15:48:05 +03:00
Dmitry Marakasov
fbf5006978
Automatically move database from legacy location if it exists
2016-04-08 15:48:02 +03:00
Dmitry Marakasov
20b3b52629
Fix database path
...
- Don't use ~/.cache, it's intended to store non-essential data
files and may be purged at any time
- Instead, follow XDG and use $XDG_DATA_HOME or ~/.local/share/buku
- Fallback to current directory if HOME is not defined (Windows?)
2016-04-08 15:47:30 +03:00
Arun Prakash Jana
e835ddf23f
Update buku
2016-04-06 10:25:25 +05:30
Arun Prakash Jana
c4541227b4
Update buku
2016-04-06 10:09:56 +05:30
Arun Prakash Jana
fb6ec10648
More commits on functions.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-04-05 18:25:29 +05:30
Arun Prakash Jana
ccd7c8b035
Change the order of return values from getPageResp.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-04-05 18:10:05 +05:30
Arun Prakash Jana
de6f86c7f9
Function comments
2016-04-05 16:55:40 +05:30
Arun Prakash Jana
7ee0c12a5f
Update buku
2016-04-04 15:20:23 +05:30
Arun Prakash Jana
e1722bd9dc
Extra conversion removed.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-04-03 21:28:47 +05:30
Arun Prakash Jana
c7b5863b04
Function to print catchy errors and warnings.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-04-01 20:26:00 +05:30
Arun Prakash Jana
9a6e6296bd
Show version in debug logs.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-31 00:58:37 +05:30
Arun Prakash Jana
49f788105a
Handle piped input.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-26 21:29:07 +05:30
Arun Prakash Jana
ada4b35f73
Show correct redirected URL.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-26 11:14:26 +05:30
Arun Prakash Jana
5055833a69
Help related changes.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-26 00:08:23 +05:30
Arun Prakash Jana
c4da585c34
Help section with common options at top.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 23:53:26 +05:30
Arun Prakash Jana
5dd55724b2
More elaborate description.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 22:09:45 +05:30
Arun Prakash Jana
b366bc4e25
Change program description.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 22:06:29 +05:30
Arun Prakash Jana
c18fe5635f
The purpose of insert is gone with auto-compaction.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 19:42:49 +05:30
Arun Prakash Jana
7e9fc59491
Remove obvious line from help.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 15:02:51 +05:30
Arun Prakash Jana
8fb1123831
Reformat help and man.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 14:59:19 +05:30
Arun Prakash Jana
e8835504ff
Reformat, add notifications and errors.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 13:32:43 +05:30
Arun Prakash Jana
b5f066ba43
Show all bookmarks with empty titles or no tags.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 13:22:52 +05:30
Arun Prakash Jana
eae1237ea7
Catchier error messages.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 12:04:32 +05:30
Arun Prakash Jana
a56fa0381d
Detect and break redirection loops.
...
Unquote text before connection check and GET request.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 11:47:20 +05:30
Arun Prakash Jana
ea02856bc1
Fix issues with fetching pages with %20
.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 08:08:03 +05:30
Arun Prakash Jana
1c982ccd51
Show new record after add or update.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 02:18:36 +05:30
Arun Prakash Jana
3ea64f3a5f
Better redirection handling.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 02:08:38 +05:30
Arun Prakash Jana
1ea332ba18
Handle multiple reirections. Show URL in BOLD.
...
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 01:10:30 +05:30