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

Learning to Develop Bots

Discussion in 'Social Networking Sites' started by YousB, Jan 8, 2014.

  1. YousB

    YousB Junior Member

    Joined:
    Apr 23, 2013
    Messages:
    111
    Likes Received:
    35
    Hello!

    I wanted to ask the BHW community what is the best language/platform to use for coding my own bots. I have a programming experience and am currently taking multiple programming courses. But I wanted to know what is the most logical programming language to use. Is there some sort of standard that I don't know of.

    All replies are greatly appreciated =)
     
  2. TheeAriGrande

    TheeAriGrande Regular Member

    Joined:
    Jul 14, 2013
    Messages:
    270
    Likes Received:
    151
    Location:
    Candlestick Park
    There's no standard. Some programmers might tell you otherwise but when it comes down to it, it's personal preference.
     
  3. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    Take a look at Python. I use it for most of my bots. There are many great Python libraries for scraping and automation such as Mechanize, lxml , Pyparsing , UrlLib, PycURL & Scrapy.
     
  4. TehEpidemick

    TehEpidemick BANNED BANNED

    Joined:
    Oct 31, 2011
    Messages:
    778
    Likes Received:
    181
    I find python has a steeper learning curve for customizing. i like c# or vb.net
     
  5. tnhomestead

    tnhomestead Regular Member

    Joined:
    Oct 9, 2011
    Messages:
    385
    Likes Received:
    253
    Location:
    Tenneessee USA
    Home Page:
    The language you know the best -- Whether thats PHP, C#, VB, Python or another one. My choice is usually PHP or C#, depending on what I need or want to do.
     
  6. YousB

    YousB Junior Member

    Joined:
    Apr 23, 2013
    Messages:
    111
    Likes Received:
    35
    I am most comfortable in Ruby at the moment. I am hearing a lot of people reply with python which I have heard good things about.



    A php bot? :O
     
  7. TheeAriGrande

    TheeAriGrande Regular Member

    Joined:
    Jul 14, 2013
    Messages:
    270
    Likes Received:
    151
    Location:
    Candlestick Park
    I used to use PHP to make bots all the time. The downside is that you can't multithread apps. If I had to recommend a language for botting then I would say c#.
     
  8. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    This was true in the past but threading IS possible with PHP.

    Code:
    http://pthreads.org/
     
    • Thanks Thanks x 1
  9. YousB

    YousB Junior Member

    Joined:
    Apr 23, 2013
    Messages:
    111
    Likes Received:
    35
    So would Ruby not work as well as C#, PHP, and Python?
     
  10. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,883
    Likes Received:
    7,481
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page:
    Python or Ruby are great. Also C# if you plan on leveraging the Windows platform.
     
  11. FJX

    FJX Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 13, 2011
    Messages:
    356
    Likes Received:
    186
    Location:
    0x90
    A workaround would be - make a PHP script to interact with a Python bot somewhere :)
     
  12. TheeAriGrande

    TheeAriGrande Regular Member

    Joined:
    Jul 14, 2013
    Messages:
    270
    Likes Received:
    151
    Location:
    Candlestick Park
    Interesting! I'm going to take a look at this in my free time. I just got back into programming and IM so I feel like a dinosaur.

    Thanks,
    ​TheeAriGrande
     
  13. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    No problem but be advised that I have not extensively tested this threading solution for php. I am sure its riddled with issues. :)
     
  14. barigain

    barigain Junior Member

    Joined:
    Aug 23, 2012
    Messages:
    100
    Likes Received:
    12
    I recommend PHP with Node.js for any kind of bots - Facebook, Twitter, Youtube.
    Just take care about cookies, redirects, user-agents and you'll be successful!
     
  15. ddraj

    ddraj Newbie

    Joined:
    Jun 27, 2012
    Messages:
    10
    Likes Received:
    0
    python! but depends on personal preference. Try which flavor you like.
     
  16. deki33

    deki33 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 9, 2009
    Messages:
    4,590
    Likes Received:
    763
    1. Python
    2. PHP/Curl
    3. Ubot studio
    4. imacros
     
  17. Commoner

    Commoner Power Member

    Joined:
    Dec 8, 2013
    Messages:
    745
    Likes Received:
    160
    Occupation:
    Analyst
    Location:
    SG
    Home Page:
    Hi OP,

    Best is on developed platform, C#, Perl and Ruby.
    PhP: hmmmmmmmmmmm

    Good Luck,
    Commoner
     
  18. babypar

    babypar Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 19, 2007
    Messages:
    397
    Likes Received:
    89
    It depends what you want to do.
    You can automate almost any site with Selenium and you can code it in PHP, Java, C++, Python and many more
    WinAutomation and AutoIT are good for windows environments where you interact with browsers and applications
     
  19. Fortythieve

    Fortythieve BANNED BANNED

    Joined:
    Jun 8, 2013
    Messages:
    419
    Likes Received:
    70
    This has nothing to do with social networking !