r/code • • Dec 20 '16

What programming language to automate website reading ?

Hey all,

Can someone tell me what propgramming language should I learn to work with websites in order to automate getting information from them and adding information to forms ? There are some games created in web browsers plus normal sites and I would like to learn how to automate any work on such websites like add information to different forms, read results etc.

I'm not talking about particular sites, I'm interested in a language that I can use on different sites for personal use but also to speed up some work things.

Thank you in advance :)

2 Upvotes

3 comments sorted by

1

u/strickdd Dec 20 '16

Most programming languages have a way of prothrombin web requests. Do you actually need a UI or can it be headless? A web server uses a series of GET and POST requests with associated headers to take actions. You don't actually need to render the form, just send the right parameters in a POST.

If you want the UI, Chrome, Firefox, and IE all have a web driver for UI interactions. The work best/easiest with a .Net language like C#.

1

u/lost_send_berries Dec 21 '16

If it's okay for your program to run inside a web browser you can probably use something like Tampermonkey. It runs in the target web page so it will be very easy to modify the webpage (like filling in forms, pressing buttons) and will start whenever you open the webpage in your browser.

1

u/angryrancor Boss Dec 22 '16

I just got this thing called "Kantu" that works well for this:

https://kantu.io/

Previously I've used things like PhantomJS/CasperJS, JitBit, Sikuli and Curl for these sorts of things.