I have a website where I want to automate some tasks and make some "bot-like" program that will run on it. I am struggling to figure out the best option for this task. My initial thoughts have been to use Selenium with PHP or Javascript. I have used Selenium in the past for regression testing on applications I have worked on, so not quite the same purpose. I need something that can run headless on a Ubuntu server and that can also capture screen captures of the page (so that I can send updates to myself with pictures).
Goals of the tool:
- Navigate across multiple HTML based pages that also rely on some Javascript rendering for their look
- Send some requests to API's on the site (the API's are not enough, it still needs to go through multiple web pages and click on things via a mouse click, API is more for read-only access)
- Take full page screenshots
- Run headless on a Ubuntu server
- Use either Javascript (can use things like node too), PHP, or Python.
I really am lost on which tool to use, and whether Selenium is the right tool to help me with this project, or if there are better tools designed for this purpose out there. I won't be doing anything rather complex, just trying to automate some repetitive clicking tasks on a webpage that cause my carpal tunnel issues.