Using selenium/flask to scrape a website and populate a web page based on that info. Results keeping disappearing
I’m trying to make a Fantasy Football Optimizer. Since ESPN doesn’t have an API and requires a login to access the draft room, I’m using Selenium. My goal is to have a website with a launch button that, when clicked, creates a driver and opens a new window. Once the user navigates to their draft room, they hit a connect button, which should scrape the required information in that window and display it on the site. The problem is that when the user clicks connect, the correct information appears on my site for a split second but then disappears. Even the console log resets. However, if I save the dataframe created by the scraper and upload it directly to the backend, it works perfectly. What can cause this and how do I fix it?
selenium instagram like bot
This is the code to the bot that I have built trying to use selenium eventhough I have been trying to use an xpath or to use the labels or the current dynamic html structure of the instagram it just keeps timing out. Is there anything I can change ?