Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Automate a web page —> click on links and buttons and scrape information.
-
Is it possible to use Pythonista as a bot? I’ve been given some repetitive tasks from my boss that involves clicking links in a web page. I have worked out how to do that on a Mac with AppleScript and Safari, but is this possible with Pythonista on an iPad? How would I get Pythonista to open up a web page and start click on links or buttons?
-
If you don't need JavaScript to run, you can just use requests to scrape pages and send get or post requests on links.
Otherwise, you can use a webview or @mikael's WKWebView wrapper, and inject JavaScript to simulate link clicking...
-
@wayland, link to the WKWebView wrapper.