Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send page DOM + screenshot directly to archivebox when saving #33

Open
pirate opened this issue Dec 4, 2024 · 1 comment
Open

Send page DOM + screenshot directly to archivebox when saving #33

pirate opened this issue Dec 4, 2024 · 1 comment

Comments

@pirate
Copy link
Member

pirate commented Dec 4, 2024

When submitting a page to ArchiveBox, the extension should send the page DOM + MHTML + innerText + screenshot as well.

That way there is always a capture of the page exacly as it appears when browsing.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/captureVisibleTab

@TomK32
Copy link

TomK32 commented Jan 16, 2025

I'm not one of the devs but it look possible to either extend the API here a bit
https://github.com/ArchiveBox/ArchiveBox/blob/dev/archivebox/core/views.py#L433

or uncomment and extend the @router.post("/snapshot"...) here https://github.com/ArchiveBox/ArchiveBox/blob/aa55e0d02e644e011e8a09b41c6c6c316c164d3c/archivebox/api/v1_core.py#L317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants