I'm building a web scraper with Python that collects data on baseball cards. I'm an Information Systems Major and haven't really coded much. I'll admit that a lot of my code has been built through ChatGPT.
When running my scraper, I realized that I was saving the thumbnail of the image and not the high quality image. I want the scraper to click the element instead where it forces open a new tab and save the image there. After it's done saving, I want it to close the tab and continue scraping other cards. I am not sure how to approach this.
A database with sqlite3 is being used.
My code: https://paste.pythondiscord.com/COCQ
May need 'images' folder
I believe these lines might be where I should look:
111 - It's saving the image here. I think clicking the element might belong here
127 - That's the element it should click without the last /img
I know it's a lot but any help is appreciated. This is pretty much the last thing I need for my scraper