Jump to content
Sign in to follow this  

search google and display urls in my program

Recommended Posts

Hello seems i have a problom with this script i have been working on the script is search google and display urls in my program my problom is it will only show me the first page of the search cant fig out how to get the script to go to page two of the google search ?

For $i = 0 To 1000
    $success = $spider.CrawlNext()
    If ($success = 1) Then
        ; Show the URL of the page just spidered.
        GUICtrlSetData($Edit1,$spider.LastHtmlTitle&@CRLF&$spider.LastHtmlKeywords&@CRLF& $spider.GetOutboundLink($i)& @CRLF,1)
        ; The HTML is available in the LastHtml property
        ; Did we get an error or are there no more URLs to crawl?
        If ($spider.NumUnspidered = 0) Then
            MsgBox (0,'',$spider.LastErrorText)
    ; Sleep a second before spidering the next URL.
Edited by mkmcst

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...