Need some help with a script, not sure where to start (klicking buttons on a website, maybe selenium?)
I'm not a python dev, but I do have a lot of experience doing this with NodeJS + Javascript. I'd recommend using NodeJS with a very nice package called Puppeteer. It can use your built in browser, like Chrome or Firefox, to launch a webpage and control it easily.
I'd recommend writing a script that opens a new puppeteer instance, browses to your desired webpage and waits for the button to become visible. Once it does, it can easily be clicked.
Install NodeJS: here.
Create a new folder for your project.
Run `npm init` and enter some details.
Install Puppeteer: `npm install puppeteer --save`.
Create a new `index.js` file and get editing..
I'd recommend following with an example first, and then modify it to suit your needs. You can absolutely execute this as a task as Nodejs just takes the JS file path as the first argument, and then executes it. You could even make a BAT file to wrap it so you have a single Windows executable.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now