Mastodon Feed: Post

Mastodon Feed

Boosted by cwebber@social.coop ("Christine Lemmer-Webber"):
joeyh@sunbeam.city ("see shy jo") wrote:

Wrote a 58 line shell script and now #gitAnnex can treat Internet Archive items as remotes, tracking changes to files in them and downloading files from them as needed like from any other remote.

This is a new git-annex feature and it really just comes down to a few lines of shell script, with the meat of it being a `curl | jq`. The rest is boilerplate that would be the same in any script doing this for any web resource.

https://git-annex.branchable.com/special%5Fremotes/external/git-annex-remote-internetarchive

Example adding a Moby Dick ebook. > git-annex initremote mobydick type=external encryption=none externaltype=internetarchive importtree=yes item=moby_dick_librivox > git-annex wanted mobydick include="*.mp3" > git-annex import master --from mobydick list mobydick ok import mobydick mobydick_135_melville_64kb.mp3 ok