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

Perl or PHP script, visits site and clicks on button

Discussion in 'General Scripting Chat' started by monkey1234, Jul 27, 2011.

  1. monkey1234

    monkey1234 Newbie

    Joined:
    Apr 29, 2011
    Messages:
    41
    Likes Received:
    18
    Hello,

    I was wondering if anyone knows of any Perl or PHP script that can visit a website (with multi threading) and click on a button which is on the site???

    any help is appreciated! thank you! :)
     
  2. Baybo.it

    Baybo.it Registered Member

    Joined:
    Aug 9, 2011
    Messages:
    72
    Likes Received:
    39
    Occupation:
    Founder of Baybo.it
    Location:
    San Francisco
    Home Page:
    I think you may be looking for some kind of crawler to automatically traverse through a set of links? You can do this a number of ways, one being a 'wget' over linux which doesn't even require a script.

    Another alternative would use node.js to manipulate the DOM.

    Finally, you could, as you suggested use php, python, perl, or ruby.

    If so, you can find the code for a simple crawler by searching google for Python Web Crawler in Under 50 Lines. Unfortunately, I don't have the ability to post links yet -- sorry!

    There is also a possibility that you are looking for javascript which will perform some action when a page loads, but it doesn't seem like this is what you are asking. If I am incorrect, let me know and I will try to adjust my answer accordingly.
     
  3. accelerator_dd

    accelerator_dd Jr. VIP Jr. VIP Premium Member

    Joined:
    May 14, 2010
    Messages:
    2,441
    Likes Received:
    1,005
    Occupation:
    SEO
    Location:
    IM Wonderland
    Going to a site and clicking a button?

    All I can think of is you are trying to "submit" to a post form, you can do that with php and CURL, and you can do curl with multithreading from what i've heard (havent used this s ofar). Also rotating proxies (which i think will be needed) is possible and extremely easy with curl.
     
  4. monkey1234

    monkey1234 Newbie

    Joined:
    Apr 29, 2011
    Messages:
    41
    Likes Received:
    18
    thanx for your help