Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No valid results for martech.org URLs #51

Closed
Ismael-Hery opened this issue Apr 4, 2022 · 2 comments
Closed

No valid results for martech.org URLs #51

Ismael-Hery opened this issue Apr 4, 2022 · 2 comments
Labels
question Further information is requested

Comments

@Ismael-Hery
Copy link

Hello and thank you for this great lib!

htmldate gives "# ERROR no valid result for url" for articles on martech.org which nonetheless display pub date in header.

e.g. https://martech.org/why-testing-is-strategic-experimentation-for-sustainable-growth/

While "on April 4, 2022 at 10:43 am" is displayed at the beginning of the article.

adbar added a commit that referenced this issue Apr 5, 2022
@adbar adbar added the question Further information is requested label Apr 5, 2022
@adbar
Copy link
Owner

adbar commented Apr 5, 2022

Hi @Ismael-Hery, thanks for reporting the issue!
It is more a logging problem: with the commit above you now see the error 403 on this website which is probably linked to the user agent string.

For a quick fix on the command-line I would execute a separate download and pipe the result to htmldate, i.e. wget -O - "https://martech.org/why-testing-is-strategic-experimentation-for-sustainable-growth/" | htmldate

@Ismael-Hery
Copy link
Author

Hi @adbar,

Thank you for your quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants