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
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:
When page opens, 'Submit" button actually reads "Check". On click, check is run, user gets a message (in the <h3 id="success|error"> elements w/ two possibilities:
"not archived -- submitting" -- at this point runs all subsequent $.get() calls, to pipeline app, to google form, or elsewhere
"archived -- submit anyway". Button text now changes to "Submit" and clicking on it sends to google form/pipeline app/whatever.
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
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 returnor w/ jquery:
I would love to see this:
<h3 id="success|error">
elements w/ two possibilities: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