Jack023 Posted July 26, 2014 Posted July 26, 2014 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?
Muzaiyan Posted July 26, 2014 Posted July 26, 2014 you should try this function _IEBodyReadText() find here _IEBodyReadText
Jack023 Posted July 26, 2014 Author Posted July 26, 2014 asyou.can.see.in.my.post.i.already.tried.it.but.output.is.0?
Muzaiyan Posted July 26, 2014 Posted July 26, 2014 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)
computergroove Posted July 26, 2014 Posted July 26, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now