palewire/savepagenow — reverse-engineered prompt
Reverse engineered prompt
Build me a small Python package for saving web pages to the Internet Archive using their Save Page Now service. I want it to work both as something I can import in a Python script and as a simple command line tool I can run from my terminal.
The main use should be easy. I give it one URL, it sends it to archive.org, then it tells me whether the page was captured and gives me the archived link if one is available. Please handle common problems in a friendly way, like a bad URL, network failure, archive.org rejecting the request, or the capture taking too long.
Keep the interface simple and well documented, with a short README showing install instructions, command line examples, and Python examples. Add basic tests for the core behavior and make it ready to publish as a normal Python package. Look up the current Save Page Now docs online if you need to.
Want more depth? Deep Reverse