Closed pyprism closed 3 years ago
I already updated the library to version to 1.0.1 , still I am unable to save urls . Here is the codes :
def save_wayback(main_url): try: wayback = savepagenow.capture_or_cache(main_url) wayback_url = wayback[0] archived = True error = None except Exception as e: wayback_url = '' archived = False error = str(e) return wayback_url, archived, error
error message: {'Server': 'nginx/1.15.8', 'Date': 'Fri, 17 Jul 2020 12:24:19 GMT', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '178', 'Connection': 'keep-alive', 'X-App-Server': 'wwwb-app103', 'X-ts': '520'}
{'Server': 'nginx/1.15.8', 'Date': 'Fri, 17 Jul 2020 12:24:19 GMT', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '178', 'Connection': 'keep-alive', 'X-App-Server': 'wwwb-app103', 'X-ts': '520'}
and sample url : Link
Same. See: https://gist.github.com/eggplants/138ce2ee76617023c79089460b296458
Currently this solution solves my problem.
I already updated the library to version to 1.0.1 , still I am unable to save urls . Here is the codes :
error message:
{'Server': 'nginx/1.15.8', 'Date': 'Fri, 17 Jul 2020 12:24:19 GMT', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '178', 'Connection': 'keep-alive', 'X-App-Server': 'wwwb-app103', 'X-ts': '520'}
and sample url : Link