edgi-govdata-archiving / eot-nomination-tool

📚 Chrome extension to nominate government data that needs to be preserved
https://chrome.google.com/webstore/detail/nominationtool/abjpihafglmijnkkoppbookfkkanklok
GNU General Public License v3.0
20 stars 10 forks source link

query IA and alert user if recent copy of current URL is found. #48

Closed titaniumbones closed 7 years ago

titaniumbones commented 7 years ago

The internet archive API can tell you if a URL is already in the archive via a simple API, so: http://archive.org/wayback/available?url=http://whitehouse.gov will return

{"archived_snapshots":{"closest":{"available":true,"url":"http://web.archive.org/web/20170202062552/https://www.whitehouse.gov/","timestamp":"20170202062552","status":"200"}}}

or w/ jquery:

var response $.getJSON("http://archive.org/wayback/available?url=http://whitehouse.gov");
console.log(response.responseJSON.archived_snapshots.closest.timestamp);

I would love to see this:

Is there anyone out there who thinks they might be able to od this by Saturday @mi-lee @sonalranjit @atesgoral @danielballan @geppy?

If you don't know what the pipeline app is, don't worry about it, we are moving the URL tracking out of Google forms finally ,eventually this app will also move.

@atesgoral if you think your other cooler idea can also work pls go ahead and implement that!!!!Sat morning is good, Friday even is better, later is also fine but then I will stop worrying about this. Thanks all

titaniumbones commented 7 years ago

duplicate of #10