pragma.archivelab.org | An API for citing Wayback snapshots with OpenAnnotations | Computer Vision library
kandi X-RAY | pragma.archivelab.org Summary
kandi X-RAY | pragma.archivelab.org Summary
An API for citing Wayback snapshots using OpenAnnotations.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Save a wayback
- Save Entry to database
- Returns True if condition exists
- Creates a new model
- Create hook
- Dictionary representation of the table
- Save url to archive
- Search a model
- Returns all records that match the query
- Find the version string
- Read file contents
- Saves the current instance
- Override save hook
- Create an annotation
- List open annotations
- Read a file
- Get a wayback snapshot
- Get details about a wayback
pragma.archivelab.org Key Features
pragma.archivelab.org Examples and Code Snippets
Community Discussions
Trending Discussions on pragma.archivelab.org
QUESTION
I have a number of JavaScript functions that I am using in Google Sheets to perform various webpage speed tracking and archiving steps.
Would like to leverage the Internet Wayback Archive to store pages when the page score shifts +/- a particular score range.
The challenge that I'm having is that I'm not sure how (if it's possible) to execute a converted curl command from within the Google Sheets script editor interface.
If I understand things correctly, I would need to convert the following curl code:
...ANSWER
Answered 2017-Sep-05 at 13:37The biggest thing that differentiates cURL and Ajax is that AJAX is client side code. Browsers have to follow strict behaviours to prevent malicious behaviours. Ajax is bound to the CORS policy which means that if you are requesting a page from another domain, that domain should explicitly state that your domain (or global domains, or even wildcard for) is allowed to do such thing.
The JSONP protocol is not bound to the CORS. It is done so because it cannot cause harm, and it makes building/using APIs easier. Luckily, the web archive seems to be well supported by mementoweb, who provide an API just like that.
Read more about it here
Send your request to http://timetravel.mementoweb.org/api/json/YYYY/URI
and mementoweb will send you the list of Memento closest to the specified date.
I hope it helps you go forward.
And to answer your question, your request is just fine. Note that the data attribute could be a simple object instead of string, jQuery will handle the rest for you.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pragma.archivelab.org
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page