Jump to content

get text?


Go to solution Solved by elmoi0010,

Recommended Posts

Hello guys am triying to get specified text from a webpage but.. It dont have, name or id or somethings is just a webpaje like .txt. Look.

screenshot_101.png

That's all the source code. and i want to get just the "email_timestamp". or the "email_addr" and dont know how to search and copy just that. I tryed with

_IEBodyReadText($oIE)

But i dont know what to do. Thanks in advanced<3

Link to comment
Share on other sites

If I understand, this code could work :

; $sText = _IEBodyReadText($oIE)
$sText = '{"email_addr":"acgdpzqi@guerrillamailblock.com","email_timestamp":1409497735,"alias":"qjzji+6wmbwsypujcmc","sid_token":"90b79mphomer90hs2gsvp6ill3"}'

$aExtract = StringRegExp($sText, '(?is)"email_addr":"([^"]+)".*?email_timestamp":(\d+)', 1)
If IsArray($aExtract) Then ConsoleWrite("email_addr : " & $aExtract[0] & @CRLF & "email_timestamp : " & $aExtract[1])
Link to comment
Share on other sites

  • Solution

 

If I understand, this code could work :

; $sText = _IEBodyReadText($oIE)
$sText = '{"email_addr":"acgdpzqi@guerrillamailblock.com","email_timestamp":1409497735,"alias":"qjzji+6wmbwsypujcmc","sid_token":"90b79mphomer90hs2gsvp6ill3"}'

$aExtract = StringRegExp($sText, '(?is)"email_addr":"([^"]+)".*?email_timestamp":(\d+)', 1)
If IsArray($aExtract) Then ConsoleWrite("email_addr : " & $aExtract[0] & @CRLF & "email_timestamp : " & $aExtract[1])

That works perfectly bro thanks in advanced.

Edited by elmoi0010
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...