I looked into it a bit and this shouldn't be too bad. Use rss to get new hexbear posts, check links against a whitelist of sites that should be archived, check archive.ph/latest/<url> to find an existing archive. If you get one (302 response) post it, otherwise (404 response) use https://archive.ph/submit/?url=<url> to request an archive. Wait 5 minutes, then query archive.ph/latest/<url> to get the url and post that.
I might try to throw something together in the next week.
I looked into it a bit and this shouldn't be too bad. Use rss to get new hexbear posts, check links against a whitelist of sites that should be archived, check archive.ph/latest/<url> to find an existing archive. If you get one (302 response) post it, otherwise (404 response) use https://archive.ph/submit/?url=<url> to request an archive. Wait 5 minutes, then query archive.ph/latest/<url> to get the url and post that.
I might try to throw something together in the next week.