Jump to content

get source from web-page?


Recommended Posts

hi....can anyone say me how to get the information of this page?

<td style="padding-top:8px;"><embed src="img/de/swf/statusbar.swf?__cv=6393" FlashVars="baseURL=http%3A%2F%2Fint1.seafight.bigpoint.com&amp;gold=282.743&amp;perlen=650.119&amp;rang=10&amp;ranking=14.086&amp;allowedScriptAccess=always&amp;useronline=34.935&amp;mannschaftswert=11&amp;schiffsschaden=10&amp;erfahrungspunkte=722.915&amp;jackpot=479.6+EUR&amp;userID=258987&amp;sid=b280f71cb85264d217336c668605c85e&amp;lang=de" play="true" loop="true" menu="false" quality="best" width="630" height="30" name="" allowScriptAccess="always" allowNetworking="", swLiveConnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" /></td>

i want to have this: userID=258987

can anyone pls help me?

its the source displayed when clicking it ^_^

sry for bad english

thx ahead

Link to comment
Share on other sites

This is how I do it.

PS: _arraydisplay lines are just so you can understand how it works. just edit the URL & it should work

split[2] = row 2

split[1] = row 1 in the array

#include <INet.au3>
#include <Array.au3>

    $HTMLSource = _INetGetSource('www.autoitscript.com')
    
    $_Arrayline = StringSplit($HTMLSource, @LF) ; this is the Array $_Arrayline
    
        for $i = 1 to $_Arrayline[0] 
            If StringInStr($_Arrayline[$i],'EUR&amp;userID=') Then  _sample()   ; search source for image links
            
        Next

Func _sample()

    $split = StringSplit($_Arrayline[$i],'EUR&amp;userID=',1)   ; split line to get DL URL Middle & Right part [ URL SGFDG ]
    
    _ArrayDisplay($split,'')

    $split = StringSplit($split[2],'&',1)       ; 3 split $split[2] to get Final page URL [ URL ]   

    _ArrayDisplay($split,'')

    $DL_Link = $split[1]

    ConsoleWrite($DL_Link & @CRLF)  
                    
EndFunc
Edited by goldenix
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

This is how I do it.

PS: _arraydisplay lines are just so you can understand how it works. just edit the URL & it should work

split[2] = row 2

split[1] = row 1 in the array

#include <INet.au3>
#include <Array.au3>

    $HTMLSource = _INetGetSource('www.autoitscript.com')
    
    $_Arrayline = StringSplit($HTMLSource, @LF) ; this is the Array $_Arrayline
    
        for $i = 1 to $_Arrayline[0] 
            If StringInStr($_Arrayline[$i],'EUR&amp;userID=') Then  _sample()   ; search source for image links
            
        Next

Func _sample()

    $split = StringSplit($_Arrayline[$i],'EUR&amp;userID=',1)   ; split line to get DL URL Middle & Right part [ URL SGFDG ]
    
    _ArrayDisplay($split,'')

    $split = StringSplit($split[2],'&',1)       ; 3 split $split[2] to get Final page URL [ URL ]   

    _ArrayDisplay($split,'')

    $DL_Link = $split[1]

    ConsoleWrite($DL_Link & @CRLF)  
                    
EndFunc
i tried this, but nothing happens....is there a way to make a msg box wit the userID auto it wrote out of sorce? i tried that way:

MsgBox(4096,"Kontostandt","Dein Kontostand:" & $DL_Link)

Link to comment
Share on other sites

the problem was the way data is placed in the source code: in autoit forum its placed differently, this wy we cant find

EUR&amp;userID= - wont work cuz we have &amp; in the string, so try to trim this to UserID= & it will work.

Make sure it will exit the loop, we dont need to search the leftover code in this example

#include <INet.au3>
#include <Array.au3>

    $HTMLSource = _INetGetSource('http://www.autoitscript.com/forum/index.php?showtopic=93693')
    
    $_Arrayline = StringSplit($HTMLSource, @LF) ; this is the Array $_Arrayline
    
        for $i = 1 to $_Arrayline[0] 
            If StringInStr($_Arrayline[$i],'userID=') Then  
                
                _sample()   ; search source for image links

                ExitLoop ; make sure its exits the loop hire !!!! we do not need to search the remining code
                
            EndIf
        
        Next

Func _sample()

    $split = StringSplit($_Arrayline[$i],'userID=',1)   ; split line to get DL URL Middle & Right part [ URL SGFDG ]
    
    _ArrayDisplay($split,'')

    $split = StringSplit($split[2],'&',1)       ; 3 split $split[2] to get Final page URL [ URL ]   

    _ArrayDisplay($split,'')

    $DL_Link = $split[1]

    MsgBox(4096,"Kontostandt","Dein Kontostand:" & $DL_Link) 
            
EndFunc
Edited by goldenix
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...