Jump to content
Sign in to follow this  
meorno1

ff.au3

Recommended Posts

meorno1

Hi ,

am looking to make some scirpt that search for some number between strings in html source of pages .

how can i do that using ff.au3 script without saving the page to my disk and then search for the number

example source text

Env={user:55555555,locale:

i want to get the number only .

Share this post


Link to post
Share on other sites
hannes08

I don't know about ff.au3, but if you've got the text you can use _StringBetween() to get your numbers.


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites
meorno1

I don't know about ff.au3, but if you've got the text you can use _StringBetween() to get your numbers.

yes sure this function will help but i want some way to search in html source of page is there any way faster to make this function run in html page without saving the page

Share this post


Link to post
Share on other sites
water

Did you have a look at the

_FFReadHTML or _FFReadText might do what you need.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
smartee

yes sure this function will help but i want some way to search in html source of page is there any way faster to make this function run in html page without saving the page

You can try this to get the page source :mellow:
$sSource = BinaryToString(InetRead("http://www.google.com"))

Share this post


Link to post
Share on other sites
hannes08

You can try this to get the page source :mellow:

$sSource = BinaryToString(InetRead("http://www.google.com"))

Then you can combine:

$a_result = _StringBetween(BinaryToString(InetRead("http://yourpage.com"), "Env={user:", ",locale:")

Note, that _stringBetween returns an array. :)


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

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  

×