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

A great API for bot creation

Discussion in 'C, C++, C#' started by clubbs, May 9, 2010.

  1. clubbs

    clubbs Newbie

    Joined:
    Jan 5, 2009
    Messages:
    36
    Likes Received:
    9
    The API is called WatiN. It is for Web Application Testing but makes automation of sites easier.

    When I first started making bots a while back for a few games I played I used this API and within one night I had a decent working bot.
    I guess it's just to make it simpler to interact with websites.

    The website is:
    http://watin.sourceforge.net/

    Any questions about it I will try my best to answer.
     
    • Thanks Thanks x 4
  2. mappum

    mappum Registered Member

    Joined:
    Aug 8, 2009
    Messages:
    84
    Likes Received:
    11
    Location:
    At my computer... how else would I be on a forum?
    However, that is based on running through the sites' scripts and "clicking"/inputting data.

    It is much more efficient to just look at the HTTP requests being sent and make requests with data you want to send. Use WireShark and look at the packets (then filter to HTTP).
     
  3. funnyday

    funnyday Junior Member

    Joined:
    Apr 7, 2009
    Messages:
    101
    Likes Received:
    5
    seems more efficient and more low-level to imacro.
     
  4. clubbs

    clubbs Newbie

    Joined:
    Jan 5, 2009
    Messages:
    36
    Likes Received:
    9
    I have used it for a couple of bots and found it worked great for me. Then again I was quite new to c# back then.
     
  5. nemsis

    nemsis Junior Member

    Joined:
    Sep 27, 2009
    Messages:
    173
    Likes Received:
    284
    Thanks dude it's way better than .net native webbrowser (ajax support, external domain iframe/frame etc.).
     
  6. reinrein

    reinrein Regular Member

    Joined:
    Feb 8, 2008
    Messages:
    443
    Likes Received:
    343
    Home Page:
    it is way better especially it supports firefox now. But still, it uses webbrowser :( so youll end with 1 cookie on all sessions.
     
  7. mapa1337

    mapa1337 Registered Member

    Joined:
    Jan 24, 2010
    Messages:
    68
    Likes Received:
    6
    thanks nice share!
     
  8. μελαγχολία

    μελαγχολία Junior Member

    Joined:
    Jul 16, 2010
    Messages:
    198
    Likes Received:
    25
    Location:
    Somewhere over the rainbow
    Home Page:
    Nice one! Unfortunately I've never used C# and I don't plan to ever learn it. If somebody here love Ruby/Perl and wants a similar thing, just try Mechanize. It doesn't support Javascript but at least has support to manage many cookies and html parsing
     
  9. paincake

    paincake Power Member

    Joined:
    Aug 18, 2010
    Messages:
    716
    Likes Received:
    3,100
    Home Page:
    Code:
    using (var browser = new IE("http://www.google.com"))
    it has nice abstractions...