[GH-ISSUE #743] Question: Using the CLI to reach the API of a hosted instance #1978

Closed
opened 2026-03-01 17:55:30 +03:00 by kerem · 4 comments
Owner

Originally created by @vorpalhex on GitHub (May 12, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/743

I host ArchiveBox on my homelab server, and it works great. I'd like to be able to easily push new links to it from the archivebox cli, but have the actual scraping/work done by the homelab server.

I can't for the life of me find anything in the docs about how to configure this. I'm not sure if I'm missing something obvious or if this hasn't been added yet - but the ability to easily add links from remotes over API would be really appreciated.

Originally created by @vorpalhex on GitHub (May 12, 2021). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/743 I host ArchiveBox on my homelab server, and it works great. I'd like to be able to easily push new links to it from the archivebox cli, but have the actual scraping/work done by the homelab server. I can't for the life of me find anything in the docs about how to configure this. I'm not sure if I'm missing something obvious or if this hasn't been added yet - but the ability to easily add links from remotes over API would be really appreciated.
kerem closed this issue 2026-03-01 17:55:30 +03:00
Author
Owner

@pirate commented on GitHub (May 12, 2021):

Why not just use SSH? cat some_links.txt | ssh remoteserver.example.com archivebox add

<!-- gh-comment-id:839418815 --> @pirate commented on GitHub (May 12, 2021): Why not just use SSH? `cat some_links.txt | ssh remoteserver.example.com archivebox add`
Author
Owner

@vorpalhex commented on GitHub (May 12, 2021):

  1. using docker so it's going to end up quite a bit longer
  2. not all my remotes have ssh access to the homelab
  3. different user pool on the web interface than ssh users
<!-- gh-comment-id:839419358 --> @vorpalhex commented on GitHub (May 12, 2021): 1. using docker so it's going to end up quite a bit longer 2. not all my remotes have ssh access to the homelab 3. different user pool on the web interface than ssh users
Author
Owner

@pirate commented on GitHub (May 12, 2021):

Ah well there's no way to do it at the moment aside from SSH.

You can use the REST API but it's not stable yet, (see archivebox/core/views.py:Add). There's a ticket here for tracking REST API progress: https://github.com/ArchiveBox/ArchiveBox/issues/496

<!-- gh-comment-id:839420494 --> @pirate commented on GitHub (May 12, 2021): Ah well there's no way to do it at the moment aside from SSH. You can use the REST API but it's not stable yet, (see `archivebox/core/views.py:Add`). There's a ticket here for tracking REST API progress: https://github.com/ArchiveBox/ArchiveBox/issues/496
Author
Owner

@pirate commented on GitHub (May 12, 2021):

Also keep in mind, Archivebox is primarily designed to pull links from sources periodically. So if you can expose the URLs you want to add as an RSS feed, as a file on a network share, as a URL, or anything else like that, you can configure the homelab server to poll those sources periodically with archivebox schedule.

<!-- gh-comment-id:839428958 --> @pirate commented on GitHub (May 12, 2021): Also keep in mind, Archivebox is primarily designed to *pull* links from sources periodically. So if you can expose the URLs you want to add as an RSS feed, as a file on a network share, as a URL, or anything else like that, you can configure the homelab server to poll those sources periodically with `archivebox schedule`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#1978
No description provided.