I am wondering how I can figure out if a website provide photo or video by checking its URL. I investigated the website that I am interested in and found that most of the links I have are in this form: (I am not sure if I can actually name the website, so for now I just wrote it in a form of an example):
http://www.example.com/abcdef
where example is the main domain and abcdef is a number like 69964. The interesting pattern I found is that after entering this URL, if it actually has video the URL will change automatically to https://www.example.com/abcdef#mode=tour
while if it's just a photo, it will change to https://www.example.com/abcdef#mode=0
Now I have a list of URLs from this website and I just want to check if it has photo or video, or it's not working (invalid URL). Is there anyway to do that?