Sign in to follow this  
Followers 0
tobi2006

Get special part from IE Body Text

6 posts in this topic

hey guys,

i want to get from a webpage's body text a special part!

I already played around with _StringBetween, but no success:

_StringBetween(_IEBodyReadText($ie),"Aktueller Titel:","")

Getting "0" or nothing everytime.

Can anyone help me?

Share this post


Link to post
Share on other sites



If you can give us the link of the page your trying to access it will be a lot easier to help;)

Share this post


Link to post
Share on other sites

If you can give us the link of the page your trying to access it will be a lot easier to help;)

Link: http://ww3.servemp3.com/s1-Single-Charts.html

It's the line with "Aktueller Titel:". I want to get what's after "Aktueller Titel:"

Share this post


Link to post
Share on other sites

Link: http://ww3.servemp3.com/s1-Single-Charts.html

It's the line with "Aktueller Titel:". I want to get what's after "Aktueller Titel:"

I guess two things could be wrong. Or your $ie does not work or you don't know that _StringBetween returns an array. Because if I use this:
#include <IE.au3> 
#include <string.au3> 
$oIE = _IECreate ( "http://ww3.servemp3.com/s1-Single-Charts.html" )
sleep (2000)
$text = _IEBodyReadText ( $oIE )
$result = _StringBetween ( $text , "Aktueller Titel:", "Server")

MsgBox ( 0, "asf", $text)

MsgBox ( 0, "asf", $result[0])

It works fine;)

Share this post


Link to post
Share on other sites

I guess two things could be wrong. Or your $ie does not work or you don't know that _StringBetween returns an array. Because if I use this:

#include <IE.au3> 
#include <string.au3> 
$oIE = _IECreate ( "http://ww3.servemp3.com/s1-Single-Charts.html" )
sleep (2000)
$text = _IEBodyReadText ( $oIE )
$result = _StringBetween ( $text , "Aktueller Titel:", "Server")

MsgBox ( 0, "asf", $text)

MsgBox ( 0, "asf", $result[0])

It works fine;)

It works! Thanks! Think problem was $result[0]...

Share this post


Link to post
Share on other sites

It works! Thanks! Think problem was $result[0]...

Probably it was;) Good luck with it!

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