Skip to content

Releases: httpreserve/linkstat

HTTPreserve Linkstat 0.0.3

26 May 17:51
Compare
Choose a tag to compare

Uses HTTPreserve 0.0.15 which has been updated to include a Robust Link snippet and persistent web-identifier URN.

Example:

{
   "AnalysisVersionNumber": "0.0.15",
   "AnalysisVersionText": "exponentialDK-httpreserve/0.0.15",
   "SimpleRequestVersion": "httpreserve-simplerequest/0.0.4",
   "Link": "http://example.com/",
   "Title": "example domain",
   "ContentType": "text/html; charset=UTF-8",
   "ResponseCode": 206,
   "ResponseText": "Partial Content",
   "SourceURL": "http://example.com/",
   "ScreenShot": "snapshots are not currently enabled",
   "InternetArchiveLinkEarliest": "http://web.archive.org/web/20020120142510/http://example.com/",
   "InternetArchiveEarliestDate": "2002-01-20 14:25:10 +0000 UTC",
   "InternetArchiveLinkLatest": "http://web.archive.org/web/20230526145524/https://example.com/",
   "InternetArchiveLatestDate": "2023-05-26 14:55:24 +0000 UTC",
   "InternetArchiveSaveLink": "http://web.archive.org/save/http://example.com/",
   "InternetArchiveResponseCode": 302,
   "InternetArchiveResponseText": "Found",
   "RobustLinkEarliest": "<a href='http://web.archive.org/web/20020120142510/http://example.com/' data-originalurl='http://example.com/' data-versiondate='2002-01-20'>HTTPreserve Robust Link - simply replace this text!!</a>",
   "RobustLinkLatest": "<a href='http://web.archive.org/web/20230526145524/https://example.com/' data-originalurl='http://example.com/' data-versiondate='2023-05-26'>HTTPreserve Robust Link - simply replace this text!!</a>",
   "PWID": "urn:pwid:archive.org:2023-05-26T14:55:24Z:page:http://example.com/",
   "Archived": true,
   "Error": false,
   "ErrorMessage": "",
   "StatsCreationTime": "2.538365681s"
}

HTTPreserve Linkstat 0.0.2

21 Apr 15:12
Compare
Choose a tag to compare

Minor fixes around redirects to make them more reliable for URL shorteners, but also, redirects caused because of a change in business logic, e..g. a URL legitimately moves. The logic should now always test optimistically for the "source URL".

HTTPreserve Linkstat 0.0.1

19 Mar 23:45
Compare
Choose a tag to compare

Simplifying the work of httpreserve/workflow and removing its workbench. Linkstat provides just the CLI part of the original tool which ultimately might be more useful.

CLI implementation of httpreserve that can test links and retrieve Internet Archive replacements. The tool can output the result of individual links, or take a CSV list to output collected information in JSON, BoltDB, or CSV format.

Do take a look at README.md

Example output for a single link:

linkstat$ linkstat --link http://httpreserve.info
Using httpreserve libs to retrieve data.
{
   "FileName": "",
   "AnalysisVersionNumber": "0.0.9",
   "AnalysisVersionText": "exponentialDK-httpreserve/0.0.9",
   "SimpleRequestVersion": "httpreserve-simplerequest/0.0.4",
   "Link": "http://httpreserve.info",
   "Title": "httpreserve",
   "ContentType": "text/html; charset=utf-8",
   "ResponseCode": 200,
   "ResponseText": "OK",
   "ScreenShot": "snapshots are not currently enabled",
   "InternetArchiveLinkLatest": "http://web.archive.org/web/20181231132637/http://httpreserve.info/",
   "InternetArchiveLinkEarliest": "http://web.archive.org/web/20170903194052/http://httpreserve.info/",
   "InternetArchiveSaveLink": "http://web.archive.org/save/http://httpreserve.info",
   "InternetArchiveResponseCode": 302,
   "InternetArchiveResponseText": "Found",
   "Archived": true,
   "Error": false,
   "ErrorMessage": "",
   "StatsCreationTime": "2.538627359s"
}

Please report any issues or ideas via the Issue tracker above.

Enjoy!