mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #289] Is is possible to trigger Webhook after Link has been added? #208
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#208
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 @fabianmu on GitHub (Oct 25, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/289
I am wondering if it's somehow possible to trigger a webhook after a link has been crawled and saved?
I do have the following workflow:
echo '$url' | ./archiveI could not find any info in the docs or existing issues. An alternative approach that I could look into is weather
./archiveproduces return-values that could be interpreted in the scheduled job mentioned in step 2 above.Any thoughts on how to best achieve this are very much appreciated, Thanks!
@pirate commented on GitHub (Oct 28, 2019):
Scheduled jobs are built into archivebox
>=v0.4, check out the docs here: https://github.com/pirate/ArchiveBox/wiki/Roadmap#-archivebox-scheduleIf you want to manually trigger an import you always have your CMS trigger an
archivebox add '...'command, and parse the outputted path.However, that might not be necessary FYI, as if you use
archivebox serveryou can just visithttps://127.0.0.1:8000/archive/example.com/path/that/was/archived.htmland it will automatically show you the latest version (meaning you don't have to know the timestamp/id that was assigned during the import process, you can just visit the url directly).v0.4is still not finished, but you can track progress and be notified when it's released by subscribing to the open PRs. https://github.com/pirate/ArchiveBox/pull/207@fabianmu commented on GitHub (Nov 5, 2019):
Oh ace, the option to just specify an URL to trigger archiving indeed works for my case. Thanks!