omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.

    Pythonista
    3
    3
    1519
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wayland
      wayland last edited by

      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?

      mikael 1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        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...

        1 Reply Last reply Reply Quote 0
        • mikael
          mikael @wayland last edited by

          @wayland, link to the WKWebView wrapper.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors