Fix dead links #1167
Unanswered
sebastian-92
asked this question in
Help
Fix dead links
#1167
Replies: 1 comment 2 replies
-
I could help, but is it GET requests? What is it? import urllib2 as A
with open(input('What file are all the urls stored in?'))as C:
for B in C.read().split('\n'):
try:A.urlopen(B);print(B)
except A.HTTPError:... if the file is like
I think it might work, but best to add http or https to the start of all the url. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I compiled a large list of links, to be displayed on my site, however a bunch of them are dead. How do I get rid of the dead links? I have over 1900, so it needs to be automatic and large scale
Beta Was this translation helpful? Give feedback.
All reactions