JustAnotherArchivist
d07b5a7d09
Remove debugging prints
vor 2 Jahren
JustAnotherArchivist
bf5e065a0f
Add URL/percent decoding tool
urldecode.c is entirely written by OrIdow6 except for one bug fix (char → uint8_t in the mallocs) and whitespace changes. The test suite is by JAA.
Co-authored-by: OrIdow6 <68304414+OrIdow6@users.noreply.github.com>
vor 2 Jahren
JustAnotherArchivist
11485d9404
Add infrastructure for simple C-based tools
vor 2 Jahren
JustAnotherArchivist
c50a8fd796
Fix 'Dictionary mismatch' error when very small dicts are used because the temporary file isn't written to disk before zstdcat gets executed
vor 2 Jahren
JustAnotherArchivist
5bc3d4b020
Fix crash on an empty response
This check was a leftover from the resumeKey pagination, where empty responses are supposed to be impossible. With the page pagination, they are possible.
vor 2 Jahren
JustAnotherArchivist
7f25c092d1
Catch other connection errors
vor 2 Jahren
JustAnotherArchivist
f8352809f3
Handle ConnectionResetError
vor 2 Jahren
JustAnotherArchivist
0b34268210
Catch socket.timeout, which is a separate exception class from TimeoutError before Python 3.10
vor 2 Jahren
JustAnotherArchivist
0f7a2b32a3
Log number of results on a page
vor 2 Jahren
JustAnotherArchivist
628aeb052f
Handle rate limiting
vor 2 Jahren
JustAnotherArchivist
d3ea3ce8a0
Switch from urllib to http.client to reuse connections
vor 2 Jahren
JustAnotherArchivist
8f7619ff3a
Add retries
vor 2 Jahren
JustAnotherArchivist
f98fdd5f01
Fix printing HTTP response line to stdout instead of stderr
vor 2 Jahren
JustAnotherArchivist
c9400ac46f
Fix recognition of command without optional parts
vor 2 Jahren
JustAnotherArchivist
5ca15a7c94
Add concurrency support
The proper way to do that (with asyncio) is of course aiohttp. A major drawback of the implemented approach is that running tasks can't be cancelled in case of an error. However, it works with just the standard library, and that advantage outweighs the awkward error handling for now.
vor 2 Jahren
JustAnotherArchivist
191948cf9d
Print number of modified records on requeueing
vor 2 Jahren
JustAnotherArchivist
5121524f83
Log retrieval of showNumPages
vor 2 Jahren
JustAnotherArchivist
aba7a1b0b8
Replace resumeKey pagination with page number pagination
resumeKey pagination is horribly broken. It may return incomplete results or infinite loops.
vor 2 Jahren
JustAnotherArchivist
d57324a26c
Add --where for arbitrary conditions
vor 2 Jahren
JustAnotherArchivist
fed64387bd
Invert count/write logic
Previously, write was the actual default action, and in some forms of the command, the action value isn't actually checked against the possible values, so on a typo, it would write instead of count.
vor 2 Jahren
JustAnotherArchivist
f914b6afbe
Also reset the status_code on requeueing
vor 2 Jahren
JustAnotherArchivist
303bb69c37
Add ia-cdx-search
vor 2 Jahren
JustAnotherArchivist
0b45f7b2ba
Swap syntaxes
vor 2 Jahren
JustAnotherArchivist
b2c9ea2fa4
Refactor
vor 2 Jahren
JustAnotherArchivist
eaf53e1a44
Add alphabetseq
vor 2 Jahren
JustAnotherArchivist
c9c8b7e1f7
Add ia-wait-item-tasks
vor 2 Jahren
JustAnotherArchivist
b440b35c2f
Handle ancient /?v= URLs
vor 2 Jahren
JustAnotherArchivist
0044281b9d
Add YouTube channel listing script
vor 2 Jahren
JustAnotherArchivist
1686e04cbe
Add a timeout to prevent potentially indefinite blocking
vor 2 Jahren
JustAnotherArchivist
2fc9652ee9
Add support for other instances and full-instance listing
vor 2 Jahren
JustAnotherArchivist
b72da478b2
Fix org repo listing on new design/site structure
vor 2 Jahren
JustAnotherArchivist
ce7a069af5
Add --jsonl option
vor 2 Jahren
JustAnotherArchivist
9412f0c81c
Add azure-storage-list
vor 2 Jahren
JustAnotherArchivist
696e221fc1
Add support for password-protected folders
vor 2 Jahren
JustAnotherArchivist
158c1f1fe0
Fix usage error
vor 2 Jahren
JustAnotherArchivist
53bfe468bf
Basic error checks
vor 2 Jahren
JustAnotherArchivist
8c612082b6
Restore MD5 check as the API returns it again
Effectively partially reverts 06cf71f7
vor 2 Jahren
JustAnotherArchivist
8554c01a84
Fix gofile.io download to the new getFolder endpoint and download server structure
vor 2 Jahren
JustAnotherArchivist
a246bad957
Add support for Shorts
vor 2 Jahren
JustAnotherArchivist
6d019e63fc
Fix removenonyt performance by using simpler fixed-string patterns instead of a PCRE
vor 2 Jahren
JustAnotherArchivist
b27a428787
Fix usage notes from URLs to lines on stdin
vor 2 Jahren
JustAnotherArchivist
c4b62c2fea
Fix piping when reads return less data than expected
vor 2 Jahren
JustAnotherArchivist
dba6d1fb0e
Fix stderr printing
vor 2 Jahren
JustAnotherArchivist
6e5a019d9e
Always decode stdin with surrogateescape to avoid breaking on binary input
vor 2 Jahren
JustAnotherArchivist
e48fb9d1b6
Tighten patterns for user and custom channel URLs so they can handle HTML input more easily
vor 2 Jahren
JustAnotherArchivist
9cbc3f7968
Extract playlist and channel IDs from watch URLs
vor 2 Jahren
JustAnotherArchivist
80bf010433
Percent-decode each line only once
vor 2 Jahren
JustAnotherArchivist
f1fcfabafa
Add support for reading warc.zst from stdin
vor 2 Jahren
JustAnotherArchivist
d5f646f995
Add zstdwarccat
vor 2 Jahren
JustAnotherArchivist
4415c8d5dd
Add support for img.youtube.com (old thumbnails)
vor 2 Jahren