How to get started learning to build HTTP request bots?

kexkex

Newbie
Joined
Sep 15, 2020
Messages
13
Reaction score
1
Hey there. Fairy experienced coder. Have built Twitter bots using their API (not real black hat I know lol) and recently done browser automation.

I keep hearing about HTTP request bots. Could someone point me in the right direction to go about learning this please? Having trouble finding anything on google.

What language is usually used? I’ve been doing mainly javascript. Could anyone give an example or what one of those requests may look like say to like a Tweet?

just looking for the clues! Thanks
 
You can send an HTTP request from any language, certainly Javascript is fine.

I would take a look at the axios library for making general HTTP requests from Javascript.

If you're specifically looking to like a Tweet then your options are a) the Twitter public API b) browser automation or c) reverse engineer the requests the Twitter website is making when the user clicks 'Like' (you can use Chrome Developer Tools for this) and replay a similar request using something like axios (this is effectively the Twitter internal API).

It sounds like you've already been trying with the Twitter public API. For doing browser automation, have a look at the 'Puppeteer' library for Javascript.
 
Back
Top