Jump to content
Sign in to follow this  
Jack023

Read plain text from website.

Recommended Posts

Jack023

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?

 

Share this post


Link to post
Share on other sites
Jack023

asyou.can.see.in.my.post.i.already.tried.it.but.output.is.0?

Share this post


Link to post
Share on other sites
Muzaiyan

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)

Share this post


Link to post
Share on other sites
computergroove

Is your script browsing without a browser? You could CTRL + A(select all)  and CTRL + C(Copy) open a notepad file and CTRL + V(Paste). This wont post any <>tags in most cases.


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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  

×