You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often save web pages, blog posts etc etc, to read later.
Some of them have links that might become unreachable since I saved them
If this would be in Python it would be like this
use requests.head() to connect to the URL,
use requests.response.status_code to get the status code of the given URL.
If the status code is 200, the URL is reachable.
head() is used here to speed up the things
If we want to get fancy we could add a ✔ at the end of a verified link and a ✘ at the end of a broken link in the article
A time stamp could be added (last time checked for reachable links) at the top of the article
The text was updated successfully, but these errors were encountered:
I often save web pages, blog posts etc etc, to read later.
Some of them have links that might become unreachable since I saved them
If this would be in Python it would be like this
use requests.head() to connect to the URL,
use requests.response.status_code to get the status code of the given URL.
If the status code is 200, the URL is reachable.
head() is used here to speed up the things
If we want to get fancy we could add a ✔ at the end of a verified link and a ✘ at the end of a broken link in the article
A time stamp could be added (last time checked for reachable links) at the top of the article
The text was updated successfully, but these errors were encountered: