Page MenuHomePhabricator

Add support for as archive provider
Open, MediumPublicFeature

Description .. choose "English" from the top bar pulldown to view the website.

Sample URLS:

They don't have 14-digit timestamps. At a minimum they should be skipped.

The date is available by scraping the page for "collectDate". For example:

Contains the string;

<span class="warp_textArea_collectDate">2023?3?23?</span>

ie. March 23, 2023

Bot doesn't recognize archive provider even though it's valid

Event Timeline

Some secondary websites to verify the legitimacy of the URL:

Harej triaged this task as Medium priority.Mar 20 2023, 8:14 PM

Extracting the archived date from archived pages on WARP is tricky because the data is embedded into the page, and its format depends on the language you choose on their home page

Example archive page:
When you specify "Japanese (日本語)" on WARP's home page as
then the date portion in the archived page will show:
"ご覧いただいているのは国立国会図書館が保存した<span class="warp_textArea_collectDate">2016年1月6日</span>時点のページです。"
In this mode, the date format is yyyy年m月d日.

When you specify "English" on WARP's home page as
then the archived page becomes:
"You are viewing an archived web page captured on <span class="warp_textArea_collectDate">6 Jan 2016</span> by the National Diet Library, Japan."

By default, they seem to ignore the browser's setting for "preferred language for displaying pages" and always show pages with Japanese format (tested with Firefox, clearing all cookies and setting the Webpage Language Settings to "English [en]" on top). But I am not certain here.