So, as I can see mechanize is used just to retrieve the web page. If the page is not build with JavaScript you don't need mechanize. Use requests module instead.
Or replace mechanize with selenium
Also, you never call
Are you sure this is the full script?
Or replace mechanize with selenium
Also, you never call
grab_my_pictures()
function. I don't see where requests.get(final_link)
gets the web address from either.Are you sure this is the full script?