Jump to content
Sign in to follow this  
tobi2006

Get special part from IE Body Text

Recommended Posts

tobi2006

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
MrPPP

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
MrPPP

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
tobi2006

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
MrPPP

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.