oduwsdl / archivenow

A Tool To Push Web Resources Into Web Archives
MIT License
403 stars 42 forks source link

documentation incorrect on how to pass parameters to a handler #12

Closed npdoty closed 7 years ago

npdoty commented 7 years ago

Current readme suggests this code for use in Python: archivenow.push("www.foxnews.com","cc","cc_api_key=$YOUR-Perma-cc-API-KEY") But actually, when push() is called directly, it seems to expect additional parameters in object form, e.g.: archivenow.push("www.foxnews.com","cc",{"cc_api_key":"$YOUR-Perma-cc-API-KEY"})

maturban commented 7 years ago

Thanks for pointing to this. I have updated/fixed the documentation:

archivenow.push("www.foxnews.com","all",{"cc_api_key":"8c37891..."})

['https://perma.cc/BD6D-2JWA', 'https://web.archive.org/web/20170809023423/http://www.foxnews.com', 'http://archive.is/0p5Qp', 'http://www.webcitation.org/6sZspjQvK']