]> git.phdru.name Git - bookmarks_db.git/log
bookmarks_db.git
13 months agoChore(check_urls): Improve output
Oleg Broytman [Tue, 20 Aug 2024 17:27:08 +0000 (20:27 +0300)]
Chore(check_urls): Improve output

13 months agoRefactor(Robots): `get`/`get_url` don't need `bookmark`, only charset
Oleg Broytman [Mon, 19 Aug 2024 19:28:41 +0000 (22:28 +0300)]
Refactor(Robots): `get`/`get_url` don't need `bookmark`, only charset

13 months agoFix(get_url): Adapt `get_url` to the new shiny async world
Oleg Broytman [Mon, 19 Aug 2024 16:26:29 +0000 (19:26 +0300)]
Fix(get_url): Adapt `get_url` to the new shiny async world

13 months agoRefactor(bkmk_rmultirequests): Change parent to `robot_base`
Oleg Broytman [Mon, 19 Aug 2024 14:51:20 +0000 (17:51 +0300)]
Refactor(bkmk_rmultirequests): Change parent to `robot_base`

`bkmk_rmultirequests` instantiates `bkmk_rrequests` in the workers
but itself doesn't really use anything from `bkmk_rrequests`,
so it can be just a base robot.

13 months agoDocs: Fix forgotten docs
Oleg Broytman [Mon, 19 Aug 2024 13:30:59 +0000 (16:30 +0300)]
Docs: Fix forgotten docs

13 months agoFeat(bkmk_raiohttp): Lower SSL cert validation strictness
Oleg Broytman [Mon, 19 Aug 2024 12:43:54 +0000 (15:43 +0300)]
Feat(bkmk_raiohttp): Lower SSL cert validation strictness

13 months agoFix(robots.py): Fix robot name
Oleg Broytman [Sat, 7 Sep 2024 10:58:16 +0000 (13:58 +0300)]
Fix(robots.py): Fix robot name

14 months agoFeat(Robots): Robot based on aiohttp, processes multiple URLs in parallel 6.0.0
Oleg Broytman [Mon, 19 Aug 2024 00:59:24 +0000 (03:59 +0300)]
Feat(Robots): Robot based on aiohttp, processes multiple URLs in parallel

14 months agoFeat(Robots): Make all robots async
Oleg Broytman [Sun, 18 Aug 2024 20:52:21 +0000 (23:52 +0300)]
Feat(Robots): Make all robots async

Split check_bookmark() into sync and async variants.

14 months agoRefactor(Robots): Split off `multi_mixin`
Oleg Broytman [Sun, 18 Aug 2024 20:38:52 +0000 (23:38 +0300)]
Refactor(Robots): Split off `multi_mixin`

14 months agoStyle(bkmk_rmultirequests): Renamed max_workers to max_urls
Oleg Broytman [Sun, 18 Aug 2024 20:28:56 +0000 (23:28 +0300)]
Style(bkmk_rmultirequests): Renamed max_workers to max_urls

14 months agoRefactor(Robots/base): Simplify `X-User-Agent`
Oleg Broytman [Sun, 18 Aug 2024 19:57:57 +0000 (22:57 +0300)]
Refactor(Robots/base): Simplify `X-User-Agent`

14 months agoRefactor(Robots): Rename `bkmk_robot_base.py` -> `base.py`
Oleg Broytman [Sun, 18 Aug 2024 19:42:02 +0000 (22:42 +0300)]
Refactor(Robots): Rename `bkmk_robot_base.py` -> `base.py`

14 months agoBuild: Use Python 3 5.7.0
Oleg Broytman [Fri, 16 Aug 2024 16:40:28 +0000 (19:40 +0300)]
Build: Use Python 3

14 months agoVersion 5.7.0
Oleg Broytman [Fri, 16 Aug 2024 16:39:04 +0000 (19:39 +0300)]
Version 5.7.0

14 months agoFix(bkmk_robot_base): Redraw progress bar after unhandled exception
Oleg Broytman [Fri, 16 Aug 2024 14:05:48 +0000 (17:05 +0300)]
Fix(bkmk_robot_base): Redraw progress bar after unhandled exception

14 months agoFix(bkmk_rmultirequests): Limit number of URLs to load into workers
Oleg Broytman [Fri, 16 Aug 2024 13:53:31 +0000 (16:53 +0300)]
Fix(bkmk_rmultirequests): Limit number of URLs to load into workers

14 months agoFeat(bkmk_robot_base): Send our version in `X-User-Agent` header
Oleg Broytman [Fri, 16 Aug 2024 13:37:42 +0000 (16:37 +0300)]
Feat(bkmk_robot_base): Send our version in `X-User-Agent` header

14 months agoRefactor: Move version from `setup.py` to `bkmk_objects.py`
Oleg Broytman [Fri, 16 Aug 2024 13:36:55 +0000 (16:36 +0300)]
Refactor: Move version from `setup.py` to `bkmk_objects.py`

14 months agoBuild: Install `setuptools` for `setup.py`
Oleg Broytman [Fri, 16 Aug 2024 13:36:09 +0000 (16:36 +0300)]
Build: Install `setuptools` for `setup.py`

14 months agoFeat(bkmk_raiohttp): Use siosocks for aioftp
Oleg Broytman [Fri, 16 Aug 2024 13:21:51 +0000 (16:21 +0300)]
Feat(bkmk_raiohttp): Use siosocks for aioftp

14 months agoFeat(bkmk_raiohttp): Use aiohttp-socks
Oleg Broytman [Fri, 16 Aug 2024 13:15:06 +0000 (16:15 +0300)]
Feat(bkmk_raiohttp): Use aiohttp-socks

14 months agoFeat(Robots): Removed connect_timeout, added ftp_timeout
Oleg Broytman [Fri, 16 Aug 2024 12:46:50 +0000 (15:46 +0300)]
Feat(Robots): Removed connect_timeout, added ftp_timeout

14 months agoFix(bkmk_raiohttp): Don't list FTP recursively
Oleg Broytman [Thu, 15 Aug 2024 22:59:22 +0000 (01:59 +0300)]
Fix(bkmk_raiohttp): Don't list FTP recursively

14 months agoFeat(bkmk_rrequests): Use ftplib directly, without requests_ftp
Oleg Broytman [Thu, 15 Aug 2024 22:36:07 +0000 (01:36 +0300)]
Feat(bkmk_rrequests): Use ftplib directly, without requests_ftp

14 months agoRefactor(bkmk_raiohttp): Remove unused values
Oleg Broytman [Thu, 15 Aug 2024 21:59:06 +0000 (00:59 +0300)]
Refactor(bkmk_raiohttp): Remove unused values

14 months agoRefactor(bkmk_robot_base):
Oleg Broytman [Thu, 15 Aug 2024 20:05:29 +0000 (23:05 +0300)]
Refactor(bkmk_robot_base):

14 months agoChore(bkmk_parser): Fix year
Oleg Broytman [Thu, 15 Aug 2024 20:04:46 +0000 (23:04 +0300)]
Chore(bkmk_parser): Fix year

14 months agoVersion 5.6.1: Minor fixes 5.6.1
Oleg Broytman [Thu, 15 Aug 2024 17:52:45 +0000 (20:52 +0300)]
Version 5.6.1: Minor fixes

14 months agoFix(bkmk_ph_lxml): Catch `ParserError`
Oleg Broytman [Sun, 11 Aug 2024 18:24:52 +0000 (21:24 +0300)]
Fix(bkmk_ph_lxml): Catch `ParserError`

14 months agoFix(bkmk_robot_base): Decode base64 bytes to unicode
Oleg Broytman [Sun, 11 Aug 2024 18:12:43 +0000 (21:12 +0300)]
Fix(bkmk_robot_base): Decode base64 bytes to unicode

14 months agoFix(bkmk_rrequests): Not all error codes have messages
Oleg Broytman [Thu, 8 Aug 2024 17:52:48 +0000 (20:52 +0300)]
Fix(bkmk_rrequests): Not all error codes have messages

14 months agoFeat(Robots): Robot based on requests and concurrent.futures 5.6.0
Oleg Broytman [Thu, 8 Aug 2024 13:25:33 +0000 (16:25 +0300)]
Feat(Robots): Robot based on requests and concurrent.futures

Processes multiple URLs in parallel.

14 months agoFeat: Dropped support for Python 2
Oleg Broytman [Thu, 8 Aug 2024 04:45:58 +0000 (07:45 +0300)]
Feat: Dropped support for Python 2

14 months agoFeat(Robots): Remove urllib-based robots
Oleg Broytman [Thu, 8 Aug 2024 04:31:23 +0000 (07:31 +0300)]
Feat(Robots): Remove urllib-based robots

14 months agoStyle(Writers/bkmk_wflad): Rename loop variables
Oleg Broytman [Wed, 7 Aug 2024 22:17:09 +0000 (01:17 +0300)]
Style(Writers/bkmk_wflad): Rename loop variables

14 months agoRefactor: Extract the common list of attributes; `copy_bkmk()`
Oleg Broytman [Wed, 7 Aug 2024 22:14:28 +0000 (01:14 +0300)]
Refactor: Extract the common list of attributes; `copy_bkmk()`

14 months agoFeat(check_urls): Separately report redirects
Oleg Broytman [Wed, 7 Aug 2024 21:51:21 +0000 (00:51 +0300)]
Feat(check_urls): Separately report redirects

14 months agoFeat(Robots): Stop the robot ASAP
Oleg Broytman [Wed, 7 Aug 2024 17:00:53 +0000 (20:00 +0300)]
Feat(Robots): Stop the robot ASAP

Process bookmarks after the robot stopped. In the future
there will be robots that check multiple URLs in parallel
so bookmarks cannot be processed inside check loop
but can be queried after.

14 months agoStyle(Robots): Rename `check_url` to `check_bookmark`
Oleg Broytman [Wed, 7 Aug 2024 15:28:49 +0000 (18:28 +0300)]
Style(Robots): Rename `check_url` to `check_bookmark`

Also rename `smart_get` to `get_url`.

14 months agoFix(bkmk-add): Stop the robot
Oleg Broytman [Tue, 6 Aug 2024 17:52:43 +0000 (20:52 +0300)]
Fix(bkmk-add): Stop the robot

14 months agoStyle(bkmk-add): Rename `_robot` -> `robot`
Oleg Broytman [Tue, 6 Aug 2024 16:18:36 +0000 (19:18 +0300)]
Style(bkmk-add): Rename `_robot` -> `robot`

14 months agoFeat(Robots): Do not return error from `check_url()`
Oleg Broytman [Tue, 6 Aug 2024 16:01:37 +0000 (19:01 +0300)]
Feat(Robots): Do not return error from `check_url()`

Break the entire program with `Ctrl-C`.

14 months agoFeat(bkmk_rrequests): Install socks dependency
Oleg Broytman [Tue, 6 Aug 2024 13:43:58 +0000 (16:43 +0300)]
Feat(bkmk_rrequests): Install socks dependency

14 months agoFeat(bkmk_raiohttp): Use aioftp
Oleg Broytman [Tue, 6 Aug 2024 11:27:46 +0000 (14:27 +0300)]
Feat(bkmk_raiohttp): Use aioftp

14 months agoFix(Robots): Do not route ftp requests via http(s) proxy
Oleg Broytman [Tue, 6 Aug 2024 10:07:50 +0000 (13:07 +0300)]
Fix(Robots): Do not route ftp requests via http(s) proxy

socks5 proxies are ok.

14 months agoFeat(Robots): Robot based on aiohttp 5.5.0
Oleg Broytman [Mon, 5 Aug 2024 12:00:55 +0000 (15:00 +0300)]
Feat(Robots): Robot based on aiohttp

14 months agoFeat(Writers/bkmk_whtml): Mark special folders
Oleg Broytman [Tue, 6 Aug 2024 06:16:46 +0000 (09:16 +0300)]
Feat(Writers/bkmk_whtml): Mark special folders

14 months agoFeat: Delete `root_folder.linear` before storing
Oleg Broytman [Mon, 5 Aug 2024 20:19:03 +0000 (23:19 +0300)]
Feat: Delete `root_folder.linear` before storing

14 months agoFix(bkmk_robot_base): Convert environment parameters to integer
Oleg Broytman [Mon, 5 Aug 2024 15:19:26 +0000 (18:19 +0300)]
Fix(bkmk_robot_base): Convert environment parameters to integer

14 months agoFeat(bkmk_robot_base) Cut long `data:` icon URLs for logs
Oleg Broytman [Mon, 5 Aug 2024 14:33:33 +0000 (17:33 +0300)]
Feat(bkmk_robot_base) Cut long `data:` icon URLs for logs

14 months agoFix(bkmk_rcurl): IDNA-encode URLs 5.4.1
Oleg Broytman [Mon, 5 Aug 2024 12:56:23 +0000 (15:56 +0300)]
Fix(bkmk_rcurl): IDNA-encode URLs

PycURL doesn't encode URLs itself
and requires URLs to be in ASCII encoding.

14 months agoRefactor(Robots): Connect timeout
Oleg Broytman [Mon, 5 Aug 2024 10:41:08 +0000 (13:41 +0300)]
Refactor(Robots): Connect timeout

14 months agoVersion 5.4.0: Robot based on PycURL 5.4.0
Oleg Broytman [Fri, 2 Aug 2024 10:42:11 +0000 (13:42 +0300)]
Version 5.4.0: Robot based on PycURL

14 months agoBuild: Add `devscripts`
Oleg Broytman [Fri, 2 Aug 2024 10:44:15 +0000 (13:44 +0300)]
Build: Add `devscripts`

14 months agoFix(bkmk_robot_base): Fix reporting proxy error
Oleg Broytman [Thu, 1 Aug 2024 16:10:30 +0000 (19:10 +0300)]
Fix(bkmk_robot_base): Fix reporting proxy error

14 months agoFeat(Robots): Update X-User-Agent header
Oleg Broytman [Thu, 1 Aug 2024 10:03:16 +0000 (13:03 +0300)]
Feat(Robots): Update X-User-Agent header

14 months agoFeat(Robots): Upgrade headers
Oleg Broytman [Thu, 1 Aug 2024 10:03:03 +0000 (13:03 +0300)]
Feat(Robots): Upgrade headers

14 months agoDocs(bkmk_robot_base): List robots
Oleg Broytman [Thu, 1 Aug 2024 08:40:32 +0000 (11:40 +0300)]
Docs(bkmk_robot_base): List robots

14 months agoFix(bkmk_rrequests): Check `r is not None`
Oleg Broytman [Thu, 1 Aug 2024 07:26:13 +0000 (10:26 +0300)]
Fix(bkmk_rrequests): Check `r is not None`

It seems `if r` is not enough --
`bool(r)` returns `False` in case there was an HTTP error.

14 months agoStyle(setup.py): Remove unused import
Oleg Broytman [Thu, 1 Aug 2024 05:06:27 +0000 (08:06 +0300)]
Style(setup.py): Remove unused import

14 months agoFeat(get_url): Parse args, save/print headers/body
Oleg Broytman [Thu, 1 Aug 2024 04:34:11 +0000 (07:34 +0300)]
Feat(get_url): Parse args, save/print headers/body

14 months agoFeat(robots): Report robot being used
Oleg Broytman [Thu, 1 Aug 2024 04:19:34 +0000 (07:19 +0300)]
Feat(robots): Report robot being used

14 months agoFeat(bkmk_robot_base): Report error on getting icon
Oleg Broytman [Wed, 31 Jul 2024 22:47:45 +0000 (01:47 +0300)]
Feat(bkmk_robot_base): Report error on getting icon

14 months agoFeat(get_url): Print headers
Oleg Broytman [Wed, 31 Jul 2024 22:25:07 +0000 (01:25 +0300)]
Feat(get_url): Print headers

14 months agoUpdate docs
Oleg Broytman [Wed, 31 Jul 2024 18:21:48 +0000 (21:21 +0300)]
Update docs

14 months agoFear(robots): Try robots from a list
Oleg Broytman [Wed, 31 Jul 2024 18:12:59 +0000 (21:12 +0300)]
Fear(robots): Try robots from a list

Default list is curl,requests,forking.

14 months agoFeat(Robots): Robot based on PycURL
Oleg Broytman [Wed, 31 Jul 2024 17:29:29 +0000 (20:29 +0300)]
Feat(Robots): Robot based on PycURL

14 months agoFix(bkmk_robot_base): Do not pass `localhost` via proxy
Oleg Broytman [Wed, 31 Jul 2024 16:23:22 +0000 (19:23 +0300)]
Fix(bkmk_robot_base): Do not pass `localhost` via proxy

14 months agoFeat(bkmk_rurllib): Use proxy
Oleg Broytman [Wed, 31 Jul 2024 16:22:58 +0000 (19:22 +0300)]
Feat(bkmk_rurllib): Use proxy

14 months agoStyle(bkmk_rurllib2): Remove unused import
Oleg Broytman [Wed, 31 Jul 2024 16:21:58 +0000 (19:21 +0300)]
Style(bkmk_rurllib2): Remove unused import

Found by `flake8`.

14 months agoRefactor(Robots): Move proxy handling to base class
Oleg Broytman [Wed, 31 Jul 2024 15:49:11 +0000 (18:49 +0300)]
Refactor(Robots): Move proxy handling to base class

This greatly simplifies robots.

14 months agoFeat(Robots): Return HTTP status code
Oleg Broytman [Wed, 31 Jul 2024 15:14:05 +0000 (18:14 +0300)]
Feat(Robots): Return HTTP status code

14 months agoDocs(TODO): Robot(s) that test many URLs in parallel
Oleg Broytman [Fri, 26 Jul 2024 10:12:14 +0000 (13:12 +0300)]
Docs(TODO): Robot(s) that test many URLs in parallel

Increase task priority.

14 months agoDocs(TODO): Robot based on aiohttp
Oleg Broytman [Fri, 26 Jul 2024 10:11:22 +0000 (13:11 +0300)]
Docs(TODO): Robot based on aiohttp

14 months agoAdd `setup.cfg` and `setup.py`
Oleg Broytman [Fri, 26 Jul 2024 01:32:50 +0000 (04:32 +0300)]
Add `setup.cfg` and `setup.py`

Mostly to list required and optional dependencies.

14 months agoFix(bkmk_db-venv): Do not exit
Oleg Broytman [Wed, 24 Jul 2024 21:01:18 +0000 (00:01 +0300)]
Fix(bkmk_db-venv): Do not exit

This is not a shell script, this is a sourced file.

14 months agoChore: Rename `bkmk-venv` to `bkmk_db-venv`
Oleg Broytman [Wed, 24 Jul 2024 20:44:41 +0000 (23:44 +0300)]
Chore: Rename `bkmk-venv` to `bkmk_db-venv`

14 months agoChore(bkmk-venv): Rename `.venv` to `bkmk_db-venv`
Oleg Broytman [Wed, 24 Jul 2024 20:43:45 +0000 (23:43 +0300)]
Chore(bkmk-venv): Rename `.venv` to `bkmk_db-venv`

14 months agoFeat: Cleanup redirects
Oleg Broytman [Wed, 24 Jul 2024 02:26:03 +0000 (05:26 +0300)]
Feat: Cleanup redirects

Remove verbiage.

14 months agoFeat: Skip URLs that have '%s'
Oleg Broytman [Wed, 24 Jul 2024 02:05:56 +0000 (05:05 +0300)]
Feat: Skip URLs that have '%s'

14 months agoFix: These are not errors, just duplicates
Oleg Broytman [Wed, 24 Jul 2024 01:47:39 +0000 (04:47 +0300)]
Fix: These are not errors, just duplicates

14 months agoBuild(Robots/bkmk_rrequests): Use HTTP(S) proxy instead of SOCKS5
Oleg Broytman [Tue, 23 Jul 2024 10:08:11 +0000 (13:08 +0300)]
Build(Robots/bkmk_rrequests): Use HTTP(S) proxy instead of SOCKS5

19 months agoFix(Robot): Stop splitting and un-splitting URLs 5.3.1
Oleg Broytman [Wed, 6 Mar 2024 15:43:48 +0000 (18:43 +0300)]
Fix(Robot): Stop splitting and un-splitting URLs

Pass `bookmark.href` as is.

19 months agoFix(get_url): Remove excessive printing
Oleg Broytman [Wed, 6 Mar 2024 15:36:17 +0000 (18:36 +0300)]
Fix(get_url): Remove excessive printing

`robot.get()` doesn't really fill the bookmarks,
`robot.check_url()` does but we don't call it here.

19 months agoRename `check_url.py` to `check_urls.py`
Oleg Broytman [Wed, 6 Mar 2024 15:35:03 +0000 (18:35 +0300)]
Rename `check_url.py` to `check_urls.py`

19 months agoRename `check_urls.py` to `check_urls_db.py`
Oleg Broytman [Wed, 6 Mar 2024 15:32:22 +0000 (18:32 +0300)]
Rename `check_urls.py` to `check_urls_db.py`

19 months agoVersion 5.3.0 5.3.0
Oleg Broytman [Tue, 5 Mar 2024 23:48:48 +0000 (02:48 +0300)]
Version 5.3.0

   Added get_url.py: a script to get one file from an URL.
   Renamed set-URLs -> set-urls.

19 months agoAdd `get_url.py`: a script to get one file from an URL
Oleg Broytman [Tue, 5 Mar 2024 23:47:23 +0000 (02:47 +0300)]
Add `get_url.py`: a script to get one file from an URL

19 months agoRename set-URLs -> set-urls
Oleg Broytman [Tue, 5 Mar 2024 23:33:09 +0000 (02:33 +0300)]
Rename set-URLs -> set-urls

19 months agoVersion 5.2.5 5.2.5
Oleg Broytman [Tue, 5 Mar 2024 23:24:17 +0000 (02:24 +0300)]
Version 5.2.5

   Feat(Robots/bkmk_rrequests): Ignore all problems with certificates.
   Fix(Robots/bkmk_robot_base): Pass query part.

19 months agoFix(Robots/bkmk_robot_base): Pass query part
Oleg Broytman [Tue, 5 Mar 2024 20:22:39 +0000 (23:22 +0300)]
Fix(Robots/bkmk_robot_base): Pass query part

19 months agoFeat(Robots/bkmk_rrequests): Ignore all problems with certificates
Oleg Broytman [Tue, 5 Mar 2024 20:14:47 +0000 (23:14 +0300)]
Feat(Robots/bkmk_rrequests): Ignore all problems with certificates

Drop SSL/TLS security to the lowest level.
I want to get the pages at all cost.
Unmatched names, expired certificates,
small DH values are less of a concern for me
comparing with DNS errors and connection timeouts.

19 months agoVersion 5.2.4: No need to re-check error 404 via proxy 5.2.4
Oleg Broytman [Mon, 4 Mar 2024 15:15:04 +0000 (18:15 +0300)]
Version 5.2.4: No need to re-check error 404 via proxy

19 months agoFix(Robots/bkmk_rrequests): Add forgotten spaces in log
Oleg Broytman [Mon, 4 Mar 2024 15:13:13 +0000 (18:13 +0300)]
Fix(Robots/bkmk_rrequests): Add forgotten spaces in log

19 months agoFix(Robots/bkmk_rrequests): No need to re-check error 404 via proxy
Oleg Broytman [Mon, 4 Mar 2024 10:48:26 +0000 (13:48 +0300)]
Fix(Robots/bkmk_rrequests): No need to re-check error 404 via proxy

19 months agoVersion 5.2.3 5.2.3
Oleg Broytman [Sun, 3 Mar 2024 20:49:55 +0000 (23:49 +0300)]
Version 5.2.3

Feat(Robots/bkmk_rrequests): Report 40x and 50x errors.
Fix HTML pasrer based on Bs4: Find "shortcut icon".

19 months agoFeat(Robots/bkmk_rrequests): Report 40x and 50x errors
Oleg Broytman [Sun, 3 Mar 2024 20:41:54 +0000 (23:41 +0300)]
Feat(Robots/bkmk_rrequests): Report 40x and 50x errors

19 months agoFeat(Robots/bkmk_rrequests): Change error message
Oleg Broytman [Sun, 3 Mar 2024 20:31:44 +0000 (23:31 +0300)]
Feat(Robots/bkmk_rrequests): Change error message

19 months agoFix(parse_html/bkmk_ph_beautifulsoup4): Find "shortcut icon"
Oleg Broytman [Sun, 3 Mar 2024 14:47:58 +0000 (17:47 +0300)]
Fix(parse_html/bkmk_ph_beautifulsoup4): Find "shortcut icon"

Bs4 splits attribute values. To fix it the value must be re-combined back.