In Selenium for Python, is it possible to only execute a function if the program detects you're on a specific webpage?

Post author
trainings hkr

I'm trying to scrape data off the Crunch base. To access the data in full, I have to log in first. I've set the program up to type in my username and password, but for some reason it is very difficult to press the "log in" button. Is there a way with selenium setup to only execute my data-scraping function when the program detects I'm on a certain webpage?

Comments

1 comment

  • Comment author
    Erika
    • Official comment

    Hello trainings hkr! Our system does not accept auto fill when signing in so we recommend inputting your log in information manually. Additionally, we recommend signing up for Crunchbase Pro in order to get full access to our database. If this is something that interests you, we offer a 7-day free trial that you can sign up for here - https://www.crunchbase.com/buy/cb-pro

Post is closed for comments.