
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
archive.org is a golang package for archiving web pages via archive.org.
Please be mindful and responsible and go easy on them, we want archive.org to last forever!
Created by Jay Taylor.
Also see: archive.is golang package
id_, js_, cs_, etc info to golang pkg.Related resources:
go get jaytaylor.com/archive.org/...
archive.org <url>Archive a fresh new copy of an HTML page
archive.org-snapshots <url>Search for existing page snapshots
package main
import (
"fmt"
"github.com/jaytaylor/archive.org"
)
var captureURL = "https://jaytaylor.com/"
func main() {
archiveURL, err := archiveorg.Capture(captureURL, archiveorg.DefaultRequestTimeout)
if err != nil {
panic(err)
}
fmt.Printf("Successfully archived %v via archive.org: %v\n", captureURL, archiveURL)
}
// Output:
//
// Successfully archived https://jaytaylor.com/ via archive.org: https://archive.is/i2PiW
package main
import (
"fmt"
"jaytaylor.com/archive.org"
)
func main() {
u := "http://blog.sendhub.com/post/16800984141/switching-to-heroku-a-django-app-story"
hits, err := archiveorg.Search(u, archiveorg.DefaultRequestTimeout)
if err != nil {
panic(fmt.Errorf("Search error: %s", err))
}
fmt.Printf("num: %v\n", len(hits))
for _, hit := range hits {
fmt.Printf("hit: %+v\n", hit)
}
}
// Output:
//
// num: 3
// hit: {URL:https://web.archive.org/web/20160304012638/http://blog.sendhub.com/post/16800984141/switching-to-heroku-a-django-app-story Reason:webwidecrawlhackernews00000hackernews StatusCode:301 Timestamp:2016-03-04 01:26:38 +0000 UTC}
// hit: {URL:https://web.archive.org/web/20120202233158/http://blog.sendhub.com/post/16800984141/switching-to-heroku-a-django-app-story Reason:alexacrawls StatusCode:200 Timestamp:2012-02-02 23:31:58 +0000 UTC}
// hit: {URL:https://web.archive.org/web/20120202201233/http://blog.sendhub.com/post/16800984141/switching-to-heroku-a-django-app-story Reason:alexacrawls StatusCode:200 Timestamp:2012-02-02 20:12:33 +0000 UTC}
go test ./...
Permissive MIT license, see the LICENSE file for more information.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.