jayvdb added a comment. In https://phabricator.wikimedia.org/T104761#1509808, @jayvdb wrote:
> Before 'resolving' this by checking for `None`, maybe it is worthwhile > testing the server status code. > I see on > https://github.com/kpurdon/waybacklapse/blob/master/wayback/wayback.py#L41 , > `if res.status_code == 503: ... raise Exception` Confirmed, res.status code is 503. $ wget -S 'https://archive.org/wayback/available?url=https://blah.com' --2015-08-06 11:34:04-- https://archive.org/wayback/available?url=https://blah.com Resolving archive.org (archive.org)... 207.241.224.2 Connecting to archive.org (archive.org)|207.241.224.2|:443... connected. HTTP request sent, awaiting response... HTTP/1.1 503 Service Temporarily Unavailable Server: nginx/1.4.6 (Ubuntu) Date: Thu, 06 Aug 2015 01:34:05 GMT Content-Type: application/javascript Transfer-Encoding: chunked Connection: keep-alive X-Powered-By: PHP/5.5.9-1ubuntu4.11 2015-08-06 11:34:05 ERROR 503: Service Temporarily Unavailable. $ python -c 'import requests; r = requests.get("https://archive.org/wayback/available?url=https://blah.com"); print(r.status_code, r.text);' (503, u'{"archived_snapshots":{}}') TASK DETAIL https://phabricator.wikimedia.org/T104761 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: VcamX, jayvdb Cc: gerritbot, XZise, Aklapper, jayvdb, pywikibot-bugs-list, Malyacko, P.Copp _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
