Commit Graph

321 Commits

Author SHA1 Message Date
Arun Prakash Jana
e00b10d272
We need to add a delimiter for correct ratio 2018-08-06 22:03:20 +05:30
Arun Prakash Jana
f9621e4b1a
Reduce redundant newline 2018-08-06 21:18:57 +05:30
Arun Prakash Jana
99b82c3055
Fix #300: detect non-tag keywords 2018-08-06 21:13:02 +05:30
rachmadaniHaryono
3327cf0e7a chg: doc: error on to_temp_file_content 2018-08-06 14:25:22 +08:00
Arun Prakash Jana
7989666250
Do not update title in case of network failures 2018-08-06 07:43:04 +05:30
Arun Prakash Jana
eaea7ddcb0
Use certificate verification.
We keep getting:
"InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised."

Explanation:
https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl
2018-08-06 06:21:26 +05:30
Arun Prakash Jana
bcd2aaf03f
Lint fixes 2018-08-06 05:47:42 +05:30
Arun Prakash Jana
70b6ae318a
Change user agent to X11 mode for full page data 2018-08-05 21:57:20 +05:30
Arun Prakash Jana
62923397b3
More meta tags to look for page description 2018-08-05 21:52:42 +05:30
Arun Prakash Jana
cc6151a775
Handle add and update description from editor 2018-08-05 21:00:01 +05:30
Arun Prakash Jana
5ed1e96368
refreshdb - update desc only is non-empty 2018-08-05 19:13:38 +05:30
Arun Prakash Jana
e0265a5341
Clean newlines in tags and titles 2018-08-05 18:16:03 +05:30
Arun Prakash Jana
5801b8c7e1
Use fetched description and tags from web 2018-08-05 16:37:16 +05:30
Arun Prakash Jana
4b4e5ffe37
Show error once
Show error string only once when deleting a non-existent record by index.

E.g.:

    buku -d non_existent_id

Fix indentation issue.
2018-08-05 09:24:22 +05:30
Arun Prakash Jana
c5b39b8491
A more robust delim_wrap() 2018-08-05 09:12:05 +05:30
Arun Prakash Jana
b463055f92
Fetch title, description and keywords from page 2018-08-05 08:29:19 +05:30
Arun Prakash Jana
5ea4cff4ec
Make bs4 a common import 2018-08-01 19:31:08 +05:30
Arun Prakash Jana
745b6190e4
Check index validity 2018-08-01 19:26:35 +05:30
rachmadaniHaryono
53e1eb2118 Revert "Revert "Revert "Remove redundant message, fix check for 0 records"""
This reverts commit edf5773830.
2018-08-01 19:59:50 +08:00
rachmadaniHaryono
92c6e5c7c7 chg: dev: use bs4 as backup parser 2018-08-01 19:59:33 +08:00
rachmadaniHaryono
73c79beca5 chg: dev: use utf8 as default decoder 2018-08-01 19:57:34 +08:00
Arun Prakash Jana
79746c1f83
Merge pull request #299 from dkiyatkin/chardet-for-title
Remove double whitespaces from title
2018-08-01 17:26:05 +05:30
Dmitriy Kiyatkin
4983209dfd remove double whitespaces from title 2018-08-01 10:55:12 +00:00
Arun Prakash Jana
edf5773830 Revert "Revert "Remove redundant message, fix check for 0 records""
This reverts commit 53ee3dc2d7.
2018-08-01 09:59:03 +05:30
Arun Prakash Jana
53ee3dc2d7 Revert "Remove redundant message, fix check for 0 records"
This reverts commit aa29f0cd96.
2018-08-01 09:53:55 +05:30
Arun Prakash Jana
aa29f0cd96
Remove redundant message, fix check for 0 records 2018-08-01 09:52:40 +05:30
Arun Prakash Jana
8a5fe1136b
Fix build break 2018-08-01 09:37:41 +05:30
Arun Prakash Jana
69281444fd Detect page charset from content-type field 2018-08-01 05:54:26 +05:30
Arun Prakash Jana
883a0ab631
Use UTF-8 to decode HTTP response 2018-07-31 09:36:41 +05:30
Arun Prakash Jana
982db164af
Use list for pattern 2018-07-18 02:29:54 +05:30
rachmadani haryono
be50451d1d Feature/server (#289)
* new: dev: version flag

fix: dev: pylint error

* chg: dev: sort route !cosmetic

* new: dev: custom BaseModelView for buku bookmark

* new: dev: formatted entry

* new: dev: url render mode

* new: dev: bookmark edit !wip

* chg: dev: use existing form for bookmark

* chg: dev: form name !refactor

* new: dev: enable details views

* new: dev:  views module

* new: dev: tag model view

* chg: dev: only split  page_size defined

* chg: dev: use SelectMultipleField

* fix: dev: Bookmark tags choices

* chg dev: configure tags

* chg: dev: tag edit form !wip

* chg: dev: update bookmark model

* chg: dev: remove unused function

* new: dev: add flask wtf and admin

* chg: dev: use SimpleNamespace instead namedtuple

* new: dev: delete tags feature

* new: dev: chatty parameter for delete_tag_at_index

* fix: dev: skip confirmation when deleting tag

* fix: dev: when update bookmark model

* new: dev: update tag

* chg: dev: use parse_tags method

* new: dev: select2 field for tagsfield

* chg: dev: remove unused code

* fix: dev: syntax

* fix: dev: update bookmark model

* chg: dev: change api based on flask-api

* fix: dev: new tags on tag_detail PUT

* chg: dev: raise error when parsing failed

* chg: dev: move server required package

* new: dev: create_model

* chg: dev: override abstract method model view class

* chg: dev: delete model for bookmark

* fix: dev: pylint ignore !cosmetic

* new: dev: filter for tag

* chg: dev: more filter for TagModel

* new: dev: new filter for tag model

* chg: dev: deduplicate filter

* fix: dev: pylint !cosmetic

* chg: dev: generalize tag, bookmark filter

* chg: dev: add filters for bookmark

* fix: dev: not equal filter

* new: dev: url basic filter

* chg: dev: configure bookmark model view

* chg: dev: reorder bookmark view method

* new: dev: tags number filter

* chg: dev: bookmark url with unknown scheme

* new: dev: network handle api

* new: dev: modal edit/create for bookmark

* chg: dev: link tag  bookmark tag search

* fix: dev: empty tag contain search

* chg: dev: buku search option

* new: dev: buku search to filter

* chg: dev: front page search

* chg: dev: move Statistic page to views module

* fix: dev: bookmark search

* new: dev: title filter

* fix: dev: statistic label

* fix: dev: link on statistic page

* chg: dev: strip search value

* fix: dev: bookmark entry fix

* fix: dev: netloc modal on

* fix: dev: pylint !cosmetic

* chg: dev: remove duplicate package

* chg: dev: move admin to root

* fix: dev: link on statistic page

* chg: dev: pin pyyaml package
2018-06-28 19:34:35 +05:30
Arun Prakash Jana
b7651f2a10
Fix #286: regex special char \b applies to alphanumeric only 2018-06-20 21:52:43 +05:30
Arun Prakash Jana
89871c7e40
Support result pagination 2018-06-17 08:08:34 +05:30
Arun Prakash Jana
b2c27800c4
Reduce network timeout to 15 seconds 2018-05-26 21:35:55 +05:30
Arun Prakash Jana
e68bc3e472
Handle locked DB exception 2018-05-26 20:01:33 +05:30
Arun Prakash Jana
7cea005918
Reformat API to return URL 2018-05-26 14:15:04 +05:30
Arun Prakash Jana
279219db1f
Visit lost pages on Wayback Machine 2018-05-26 04:07:06 +05:30
Arun Prakash Jana
b3437a4bfb
Prepare for release v3.8 2018-05-24 07:59:18 +05:30
Arun Prakash Jana
5142f46870
Merge tags on import if --tacit is used to prevent info loss 2018-05-20 08:16:17 +05:30
rachmadaniHaryono
9209f3e7fa chg: dev: merge code when adding record 2018-05-16 06:56:03 +08:00
rachmadaniHaryono
433a943cb9 new: dev: append tag when exist 2018-05-14 09:19:12 +08:00
Arun Prakash Jana
dae70f8309
A shorter tagline 2018-05-11 08:00:40 +05:30
Arun Prakash Jana
2e61ab72a9
Merge PR 260: Import and export of orgfile 2018-05-11 06:46:47 +05:30
John Eikenberry
18407d8960 auto-import's folder as tags uses parent hierarchy
When selecting "Add parent folder names as tags" for auto-import you get
the parent folder's title, their parent's title, etc. The full folder
hierarchy added as separate tags, up to the top level folder.

Eg. you have folder 'foo' containing subfolder 'bar' containing bookmark
'website'. Upon importing you'd get a bookmark entry for 'website' with
tags for both 'foo' and 'bar' added.
2018-05-04 23:23:09 -07:00
Arun Prakash Jana
554f86ea4c
Show results before deleting them 2018-04-21 06:41:21 +05:30
Arun Prakash Jana
0dd3df2fd1
Fix #261: escape regex metachar in regex search 2018-04-05 02:48:51 +05:30
Arun Prakash Jana
094220cb38
Fix #261: escape tag tokens to skip regex metachars 2018-04-05 02:48:49 +05:30
Arun Prakash Jana
87c170889d
Prepare for release v3.7 2018-03-28 09:25:33 +05:30
Arun Prakash Jana
1355ed4bfe
Fix help documentation 2018-03-27 04:38:24 +05:30
Arun Prakash Jana
70d9967465
Fix indentation 2018-03-26 21:08:26 +05:30