{"id":15462754,"url":"https://github.com/devidw/memoresa","last_synced_at":"2025-03-28T11:20:35.117Z","repository":{"id":105128641,"uuid":"582371260","full_name":"devidw/memoresa","owner":"devidw","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-05T14:30:24.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T11:41:44.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devidw.png","metadata":{"files":{"readme":"readme.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"devidw"}},"created_at":"2022-12-26T16:02:58.000Z","updated_at":"2023-01-05T14:31:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c9628f3-7e04-426f-ab97-4b0dd20f2dd7","html_url":"https://github.com/devidw/memoresa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Fmemoresa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Fmemoresa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Fmemoresa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Fmemoresa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devidw","download_url":"https://codeload.github.com/devidw/memoresa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246017725,"owners_count":20710240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T00:04:22.806Z","updated_at":"2025-03-28T11:20:35.112Z","avatar_url":"https://github.com/devidw.png","language":"TypeScript","funding_links":["https://github.com/sponsors/devidw"],"categories":[],"sub_categories":[],"readme":"= Memoresa Bulk Helper\n\n== Concepts\n\n=== Authentication\n\nCopy the `token` cookie from the website into an environment variable:\n\n[source,sh]\n----\nexport MEMORESA_TOKEN=…\n----\n\n\n=== Caching\n\nAPI responses are written in JSON files onto disk in a `./cache` directory.\nDelete the directory to reset the cache.\n\n\n== Export\n\nMemoresa has an export feature, but unfortunately - for me - the download dies after a few\nseconds and never finishes.\n\nTo be able to still export, this is a deno script that downloads all attachments and\norganizes them into directories with the name of the matter. Original file names\nof the attachments are respected.\n\n[source,plain]\n----\nout/\n  some-matter/\n    some-attachment.pdf\n    another-attachment.jpg\n  yet-another-matter/\n    attachment.pdf\n----\n\n=== Usage\n\n[source,sh]\n----\ndeno run --allow-all ./export.ts\n----\n\n=== Empty files\n\nFor me, 2 of a few hundred downloads resulted in empty files, to identify them:\n\n[source,sh]\n----\nfind ./out -type f -empty -iname '*.pdf'\n----\n\n\n== Delete\n\nBulk delete _all_ your matters.\n\n=== Usage\n\nFor now you have to run the export before, since this script depends on the matters\ncache.\n\nFeel free to make a PR to handle this in a more elegant way.\n\n[source,sh]\n----\ndeno run --allow-all ./delete.ts\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevidw%2Fmemoresa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevidw%2Fmemoresa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevidw%2Fmemoresa/lists"}