Sign in to follow this  
Followers 0
yannr

Extract javascript Weblink

2 posts in this topic

Hello,

I need to extract from a raw html page some links like these :

java script:ouvrirIncident('316026');

A piece of the HTML here :

<tr class="listeLigneBlanc">

<td><A class="titredroite" href="java script:ouvrir('316026');">

855

</a></td>

<td><A class="titredroite" href="java script:ouvrir('316026');">

41

</a></td>

<td><A class="titredroite" href="java script:ouvrir('316026');">

1

<tr class="listeLigneBlanc">

<td><A class="titredroite" href="java script:ouvrir('316035');">

85

</a></td>

<td><A class="titredroite" href="java script:ouvrir('316035');">

416

</a></td>

<td><A class="titredroite" href="java script:ouvrir('316035');">

13

As you can see there are 6 links items : i need only the number, one time : here 316026 and 316035, for opening the webpage automatically.

This number is not random but increasing not regularly. I need it to pass it to web browser.

I have tried to extract them without success...

I have all the links into an array, i can count the links but not able to extract numbers...

Have you any ideas ?

Thanks all !

Yann

Share this post


Link to post
Share on other sites



Have you tried IE.au3? Just connect to it with _IECreate() or _IEAttach() and then _IEBodyReadHTML(). If that's not working for you, post some code so it can be debugged.

:whistle:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  
Followers 0