Using HTML parser (General questions)

by Deepesh @, (7223 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.

locked

Re: Using HTML parser

by Jasmine, (7223 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?

locked

Re: Using HTML parser

by Deepesh @, (7222 days ago) @ Jasmine

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.

locked

Re: Using HTML parser

by Jasmine, (7222 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...

locked

Re: Using HTML parser

by Deepesh @, (7221 days ago) @ Jasmine

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.

locked

Re: Using HTML parser

by Jasmine, (7221 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.

locked

Re: Using HTML parser

by Deepesh @, (7221 days ago) @ Jasmine

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.

locked

Re: Using HTML parser

by Jasmine, (7221 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.

locked