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

Best way to write bots

Discussion in 'General Programming Chat' started by xpro, May 27, 2010.

  1. xpro

    xpro Regular Member

    Joined:
    Jan 21, 2009
    Messages:
    416
    Likes Received:
    16
    Hello

    I have always used Java + Controlling the actual browser to write my bots, but that is sometimes very slow and most importantly unreliable. I've been looking for a better solution and I looked at C#'s httpWebrequest/response but I find it some what confusing and takes too much time to create bots with it. Is there anything like that for Java but something that is easier to work with?


    Best Regards!
     
  2. madblacker

    madblacker Regular Member

    Joined:
    Nov 2, 2009
    Messages:
    268
    Likes Received:
    19
    Well you can write bots in just about any language, I have some guys who have made some in PHP and it works fine, I use php just cus the developers are the most plentiful and cheapest, I personally prefer doing web bots meaning they run on a web server and you access the gui through a web browser
     
    • Thanks Thanks x 1
  3. MisterGemini

    MisterGemini Senior Member

    Joined:
    May 25, 2010
    Messages:
    1,113
    Likes Received:
    714
    Occupation:
    Observe & Report
    Location:
    Alternate Universe
    If you are looking for a shortcut platform try out ubotstudio. You might like it.

    Java is certainly a bitter language. (yay clever pun!) :)
     
  4. Cloaks

    Cloaks Regular Member

    Joined:
    Mar 20, 2010
    Messages:
    298
    Likes Received:
    90
    Look up the URLconnection class for Java. Learn to use POST requests. Java is one of the best languages to make bots in IMO.
     
  5. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    HTTPWebRequest in .NET can be a bit verbose.

    you could always write your own wrapper class to abstract it out a bit and save yourself some code re-writing.

    in addition to that you actually also have the System.Sockets namespace. a very powerful group of classes, but will take a bit of time to learn and in practical terms really necessitates a wrapper class to abstract out the functionality.

    there are also 3rd party libraries like ChillKat HTTPClass for .NET

    i've never used ChillKat personally, don't need to because one of my partners designed an amazing custom HTTPClass based on System.Sockets, but many people seem to like the ChillKat libraries quite a bit.

    i've seen some source code for bots done in php with curl and my gut reaction is always that it seems like spaghetti code, and looks like you're making things more difficult on yourself. that's just one man's opinion though, and bear in mind that i don't have nearly the familiarity with php that i do with .NET
     
  6. Numa68

    Numa68 Registered Member

    Joined:
    May 21, 2009
    Messages:
    78
    Likes Received:
    28
    Occupation:
    I break things
    Location:
    North Carolina
    The best way to write bots is in the programming language of your choice and that you are most familiar. Java is great, so is PHP and .NET. I prefer PHP for most of my bot programming, mainly because it is cross platform and server friendly, but again that is just a personal choice.

    One thing I would caution against is browser manipulation or embedding a browser component into your bots. The prevalence of drive-by malware on sites of interest is growing wildly, and you don't need a sick host computer as a result of botting even if it is under a virtual machine.
     
  7. kaidoristm

    kaidoristm Power Member

    Joined:
    Feb 13, 2009
    Messages:
    561
    Likes Received:
    726
    Occupation:
    Freelancer
    Location:
    Estonia
    Home Page:
    Pure php! No brovsers no servers nothing just php

    [​IMG]
     
    • Thanks Thanks x 2
  8. jason2009

    jason2009 Senior Member

    Joined:
    Apr 23, 2010
    Messages:
    1,005
    Likes Received:
    206
    Occupation:
    Student
    Location:
    Earth
    Looks very good.I also like PHP.
     
  9. tutzor

    tutzor Registered Member

    Joined:
    Aug 13, 2008
    Messages:
    76
    Likes Received:
    9
    how do you make those windows gui's with PHP?
     
  10. msimurin

    msimurin Regular Member

    Joined:
    Sep 21, 2009
    Messages:
    243
    Likes Received:
    92
    c++ and QT, you dont need to write any classes or functions yourself as it pretty much is framework for anything you need with hundreds of classes and functions

    I learned that its not the language but the support you can get, there is no best languages as pretty much they are all same shit in different syntax
     
  11. pitgam

    pitgam Junior Member

    Joined:
    Jul 17, 2013
    Messages:
    117
    Likes Received:
    9
    You can create custom bots like the ones you are talking about with the free version of BuildABot Studio.
     
  12. GoTRooT

    GoTRooT Jr. VIP Jr. VIP

    Joined:
    Jun 21, 2010
    Messages:
    511
    Likes Received:
    241
    Occupation:
    Englland
    Location:
    Englland
    I use ubotstudio, it is amazing.

    Too big a subject to go into but if you code already you will find it simple, my only tip is to try it.
     
    • Thanks Thanks x 1
  13. LEADCODE

    LEADCODE Registered Member

    Joined:
    Aug 4, 2015
    Messages:
    64
    Likes Received:
    8
    Location:
    http://leadcode.io
    Home Page:
    Developing in C# is quite fast if you can invest some time and learn it properly.

    I can recommend Chilkat as well, especially their Http component ... although is not free.
     
  14. ekapek

    ekapek Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 2, 2010
    Messages:
    245
    Likes Received:
    41
    Home Page:
    Chilkat is good but nowdays .net 4.5 has also great async components for making web requests
     
  15. w84it

    w84it Regular Member

    Joined:
    Jun 18, 2009
    Messages:
    442
    Likes Received:
    752
    I think he might have figured it out.
    Considering this was 5 years ago
     
    • Thanks Thanks x 2
  16. Ramse

    Ramse Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 6, 2014
    Messages:
    773
    Likes Received:
    92
    Home Page:
    You have a point there. The downside is that you have to pay for the server on which the script runs, but hey - nothing's perfect :)
     
  17. cpaforever

    cpaforever Newbie

    Joined:
    Sep 3, 2015
    Messages:
    29
    Likes Received:
    3
    thanks very informative thread ... php is one great and easier language for programming noobs .
     
  18. Euphorix

    Euphorix Supreme Member

    Joined:
    Feb 20, 2015
    Messages:
    1,329
    Likes Received:
    778
    Location:
    Mountain View, CA
    I know this is a little out there but I'm also interested in building bots: If i build an IG bot that follows/unfollows users can my IG account get banned?
     
  19. kitteh101

    kitteh101 Regular Member

    Joined:
    Jan 17, 2012
    Messages:
    363
    Likes Received:
    53
    Occupation:
    Consultant
    Location:
    International
    @Euphorix I use a IG bot that follows/unfollows and it hasn't gotten banned, i only use 1 IG Account on 1 IP though.
     
  20. seoestore

    seoestore Junior Member

    Joined:
    Feb 3, 2014
    Messages:
    135
    Likes Received:
    25
    Occupation:
    SEO Proffesionals
    Home Page:
    How do you make this GIU using PHP?