mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #846] Feature Request: Support saving local webpages or PDFs #524
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#524
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Victor239 on GitHub (Sep 12, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/846
Type
What is the problem that your feature request solves
Sometimes ArchiveBox fails to archive a URL, but in those instances I'm still able to use the SingleFile browser extension or save the webpage as a PDF. If I open the SingleFile or PDF in my browser, I'd like ArchiveBox to be able to archive these webpages via the local file instead and then I can manually edit the URL that is associated with these webpages later if desired.
Also in some cases there are PDFs I've obtained from emails, or webpages which are already offline, but I'm unable to import them into ArchiveBox. This leaves me having to maintain a separate archive for these files in Zotero, which is a headache and makes me want to just pair things down to one archive program.
Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes
Instead of just HTTP URLs, ArchiveBox should also accept filenames such as
file:///home/user/Downloads/Rupert.htmland be able to archive these pages.@pirate commented on GitHub (Sep 16, 2021):
Not possible given the security model. ArchiveBox is essentially running in a separate virtual machine and does not have access to the local filesystem or
localhost:...urls. This is not something that's likely to change in the near/medium-term future. If it were to be implemented, it would be via a 3rd-party / community-contributed extension like https://github.com/ArchiveBox/ArchiveBox/issues/577 sending the files to ArchiveBox.As a workaround, keep in mind you can always drop files directly into snapshot folders in ArchiveBox's data dir. If you make a new snapshot, let it fail during archiving, then drag some files into the folder manually it wont delete them, and they'll be considered part of that snapshot's outputs. e.g.
some_attachment.pdf->~/archivebox/archive/152342345234/some_attachment.pdf.