Bot example anyone?

Discussion in 'Visual Basic .NET' started by Saulyx, Dec 23, 2011.

  1. Saulyx

    Saulyx Junior Member

    Joined:
    Jan 10, 2010
    Messages:
    107
    Likes Received:
    5
    Hey everyone, I'm going back to VB for a while because CURL doesn't do JS, so was wodnerign if someone could give me few starting points in making vb.net bot for lets say calling a page, doing few clicks on different buttons, checking if certain DOM element is there etc?


    Would be a massive help,


    Thanks,
    S
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,965
    Likes Received:
    13,242
    Occupation:
    Potentate
    Location:
    Asuncion
    Start reading older threads and you 'll get a good idea ;)
     
  3. specopkirbs

    specopkirbs BANNED BANNED

    Joined:
    Nov 28, 2008
    Messages:
    920
    Likes Received:
    746
    skip webbrowsers go straight to httpwebrequests, so much more powerful :)
     
  4. Saulyx

    Saulyx Junior Member

    Joined:
    Jan 10, 2010
    Messages:
    107
    Likes Received:
    5
    yeah been looking over older threads, and does httpwebrequest allow 'normal click' instead of just doing what you would do with CURL? As the site im trying to bot has a lot of JS and its impossible to go around it,


    Thanks,
    S
     
  5. Nick1

    Nick1 Junior Member

    Joined:
    Oct 16, 2009
    Messages:
    196
    Likes Received:
    45
    What specop said...

    I don't have experience cURL, but if you just use a sniffer like wireshark, and use that data to copy what's inside the HTTP request,then the JS becomes irrelevant.

    You could track down Jeff Heaton's HTTP programming for C# or Java.

    http://www.heatonresearch.com/book/http-programming-csharp.html

    My understanding is that C# is more or less the same thing as VB.NET, plus the concepts are the same, I bet you could do it with PHP as well.
     
  6. Saulyx

    Saulyx Junior Member

    Joined:
    Jan 10, 2010
    Messages:
    107
    Likes Received:
    5
    Look at the way apple shopping cart works, add an item and then try checking out without JS, I'm finding it near impossible
     
  7. Hydrogen

    Hydrogen Newbie

    Joined:
    Dec 30, 2009
    Messages:
    39
    Likes Received:
    23
    Occupation:
    Co-Owner of AdvertMarketing
    take a look at some of my other posts in the VB section, I'm pretty sure I went over DOM manipulation a few different times.

    It's pretty simple stuff once you get the hang of it
     
  8. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,965
    Likes Received:
    13,242
    Occupation:
    Potentate
    Location:
    Asuncion
    No, it does not. Use a webbrowser object. It may be slow and bloated but it 's going to be easier.
     
  9. izSpK

    izSpK BANNED BANNED

    Joined:
    Sep 5, 2010
    Messages:
    1,546
    Likes Received:
    1,668
    HTTPWebRequests doesn't do JavaScript either, so I would look into WebBrowsers if that is your main goal.
     
  10. andee

    andee Regular Member

    Joined:
    Jul 24, 2010
    Messages:
    218
    Likes Received:
    83
    if youre still looking for some example bots PM, ive got some that someone gave to me when i was learning