Is there any way to detect if a link is invalid in python webbot? I need to tell the user that the link was invalid but I don't how how to detect it.
You could try sending an HTTP request, opening the result, and have a list of known error codes, 404, etc. You can easily implement this in Python and is efficient and quick. Be warned that SOMETIMES (quite rarely) a website might detect your scraper and artificially return an Error Code to confuse you.
Problem with detecting if link is invalid