1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Making a bot

Discussion in 'PHP & Perl' started by MarkNog, Jun 19, 2014.

  1. MarkNog

    MarkNog Registered Member

    Joined:
    Jan 14, 2013
    Messages:
    55
    Likes Received:
    6
    First off: I'm not sure if this is in the right section but I am interested in making a bot for tumblr, twitter, etc. but I don't know what to learn to code this. I have seen various bots and they don't look all that difficult to make so can someone point me in the right direction? I am looking to do the whole follow, share/retweet, kinda stuffff... ya know?


    PS - I have visual basic, C++, and html coding knowledge but have never done anything like this. Mainly just coded hacks back in the day for a game called maplestory with cheat engine and c++
     
  2. spraypaint

    spraypaint Newbie

    Joined:
    Sep 16, 2013
    Messages:
    23
    Likes Received:
    4
    I am also interested in this if anyone has any links or information for it
     
  3. SeanAustin

    SeanAustin Power Member

    Joined:
    Mar 4, 2013
    Messages:
    740
    Likes Received:
    708
    Location:
    Rocky Mountains
    I would advise you learn either C# or VB.NET. Both are extremely powerful and relatively simple.
     
  4. Daagur

    Daagur Newbie

    Joined:
    Aug 22, 2012
    Messages:
    33
    Likes Received:
    60
    Home Page:
    The coding part isn't really difficult, thats right. The most annoying part is to analyse and simulate all the http requests and to deal with site specific oddities
    Therefore you will need at least a basic understanding of the http protocol. Also it can't hurt to know a bit about sessions, cookies, javascript/ajax, html (parsing)...
    As a starting point I used the book "HTTP Programming Recipes for C# Bots" from Heaton.

    Which programming language you choose doesn't really matter. In the beginning I would go with C# or Python but if you already know C++ you can just stick with it. Of course it will be more work but concurrently you will get a bigger understanding of how everything works.
     
  5. DarkPixel

    DarkPixel Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 4, 2011
    Messages:
    1,328
    Likes Received:
    1,239
    Location:
    ↓↓↓↓
    Home Page:
    I don't see a reason to go with C++. Try VB.net or C#. You can analyse/sniff the traffic with Fiddler or Charles or even Chrome Dev Tools.
     
  6. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,397
    Likes Received:
    2,066
    To be honest, the whole Visual Studio thing is pretty poor. Its platform dependent which is a massive letdown, but unless you're willing to take a huge learning curve and indulge yourself in the Volvo of programming languages that is Java, you'll probably want to stick with VB.net

    Just look up VB.net web bot on YouTube and you'll find an abundance of tutorials. The gist of every single one is:
    1) Get HTTP responses from the web application using a normal browser
    2) Repeat those POST requests with user defined variables
    3) World domination
     
  7. slipperflip

    slipperflip Registered Member

    Joined:
    Feb 11, 2014
    Messages:
    84
    Likes Received:
    16
    Occupation:
    Developer
    Location:
    USA
    Oh honey child,

    "Making a bot for tumblr, twitter, etc." is pretty ambiguous. Define what you are looking to do a bit more thoroughly and consider using Python to code things up. There are good scraping scripts out there that use Python. I prefer PHP myself, but that's because I am old.

    You'll also need to check your terms and conditions for your host. Many will not allow scraping or indexing of any kind.

    Github is a good resource for you to check out when you are sure of what you need.
     
  8. gtothem

    gtothem Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 22, 2011
    Messages:
    236
    Likes Received:
    296
    Occupation:
    Coder
    Home Page:
    The coding part can be easy but to make any half decent bot it's going to require alot of difficult.

    HTTP webrequests are quite easy and straight forward - use httprequests in .NET
     
  9. TheLinksLab

    TheLinksLab Registered Member

    Joined:
    Jun 27, 2014
    Messages:
    79
    Likes Received:
    35
    Occupation:
    Various Web Projects
    Location:
    Swansea, Wales, UK
    I would say Python too, would be the easiest to get up and running from scratch. There's a scraping framework called "Scrapy" you might want to check out.
     
  10. xlim manager

    xlim manager Newbie

    Joined:
    Jun 11, 2014
    Messages:
    8
    Likes Received:
    1
    you should check and learn selenium and java, it will help you for sure.
     
  11. member8200

    member8200 Regular Member

    Joined:
    Aug 9, 2014
    Messages:
    469
    Likes Received:
    33
    Try github, you can find a lot of good scripts that you might need there.
    Python is also one great option for building bots.