Jump to content

Read plain text from website.


Recommended Posts

Hey all,

How  can I read from a html/php page the text without the html/php tags "<br>"

as an example?

Local $oIE = _IE_Example("site")
Local $sText = _IEBodyReadText($oIE)
MsgBox(0, "Body Text", $sText)


$servdate = "site"
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET", $servdate, 0)
$oHTTP.Send()
$txt = $oHTTP.Responsetext
MsgBox(0,"",$txt)

those ways I have  tried but don't work, any tips?

 

Link to comment
Share on other sites

I got this error

 

--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
--> IE.au3 T3.0-1 Error from function _IE_Example, $_IEStatus_InvalidValue
--> IE.au3 T3.0-1 Error from function _IEBodyReadText, $_IEStatus_InvalidDataType
 

 

your can use only

basic, table, form, frameset, iframe

in _IE_Example() function

This piece of code is working for me if you are looking for this

Local $oIE = _IECreate("www.google.com")
Local $sText = _IEBodyReadText($oIE)
MsgBox(0, "Body Text", $sText)
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...