mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #743] Question: Using the CLI to reach the API of a hosted instance #1978
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#1978
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 @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.
@pirate commented on GitHub (May 12, 2021):
Why not just use SSH?
cat some_links.txt | ssh remoteserver.example.com archivebox add@vorpalhex commented on GitHub (May 12, 2021):
@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@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.