Using HTML parser - WeOnlyDo Discussion board

Using HTML parser (General questions)

by Deepesh, Saturday, July 23, 2005, 17:19 (7062 days ago)

I am trying to use wodHttpDLXCom and wodHtmlParser to fetch and parse HTML, how can I fetch data and use it with parser without saving it anywhere, Pls. provide a simple to use VB sample.

Re: Using HTML parser

by wodSupport, Saturday, July 23, 2005, 19:05 (7062 days ago) @ Deepesh

Deepesh,

simplest way would be to do[code]Http1.Get http://www.google.com [/code]and then in Done event you can do[code]HtmlParser.Load Http1.Response.Filename[/code]wodHttpDLX does save response to a file anyway - so why wouldn't you use that, right?

Re: Using HTML parser

by Deepesh, Sunday, July 24, 2005, 07:28 (7062 days ago) @ wodSupport

OK fine Thank You this is really neat, Also, I was thinking that how to dowload a CSV file from this url https://www.google.com/adsense/default?destination= 2Fadsense 2Freport 2Faggregate 3Fproduct
3Dafc 26dateRange.dateRangeType 3Dsimple 26dateRange.simpleDate 3Dthismonth 26groupByPref
3Ddate 26unitPref 3Dadunit 26reportType 3Dproperty 26null 3DDisplay 2BReport 26csv 3Dtrue , It asks for authentication username and password , I tried posting but I was unable to get it going.

Re: Using HTML parser

by wodSupport, Sunday, July 24, 2005, 11:09 (7061 days ago) @ Deepesh

I don't know what kind of authentication is there (or what the username or password is), but why don't you try setting Authentication property,and then fill up Login and Password properties? Perhaps it will work...

Re: Using HTML parser

by Deepesh, Monday, July 25, 2005, 08:37 (7060 days ago) @ wodSupport

I don't know what kind of authentication is there (or what the username or password is), but why don't you try setting Authentication property,and then fill up Login and Password properties? Perhaps it will work...

It's an webbased form using POST , i had post the username , password and destination field, It logs in fine and the sever responds with some cryptic 3 letters symbol which evokes file download box in Browsers (I had used HTTP Analyzer to test it) both my app and browser receives the same response, the browser displays download file box, but my app. needs to download the file on its own, pls. guide.

Re: Using HTML parser

by wodSupport, Monday, July 25, 2005, 10:58 (7060 days ago) @ Deepesh

Deepesh,

I cannot guide you. I can help you with HTTP protocol and with our components. But actual implementation, and scenario where you use it, is up to you - I don't have access to it to try things out, and it goes beyond support we can provide.

Re: Using HTML parser

by Deepesh, Monday, July 25, 2005, 15:18 (7060 days ago) @ wodSupport

Deepesh,

I cannot guide you. I can help you with HTTP protocol and with our components. But actual implementation, and scenario where you use it, is up to you - I don't have access to it to try things out, and it goes beyond support we can provide.

I am using your components to do this, Just tell me an example of downloading a file.

Re: Using HTML parser

by wodSupport, Monday, July 25, 2005, 15:34 (7060 days ago) @ Deepesh

Deepesh,

sure. To download a file use

Http1.Get http://some.url.com/somepath/somefile.htm

and then, when Done event fires, you can access source of this file using Http1.Response.Filename property.