![]() |
HTTP Automation?
How would it be possible to read information from a website, like an image, or a set of text within the html code?
Further more, I would like to be able to automatically fill out a form on a website through a C++ application using the Nokia QT SDK. I have C++ and some QT experience, but no knowledge of how to interact with internet based material such as html pages. Thanks. |
Re: HTTP Automation?
Since it requires lots of string manipulation and doesn't really need speed-optimized code, using C++ for that would be quite unproductive. Best is to use a script language - my personal preference is perl with WWW::Curl (due to the string manipulation part) but you can also use python-pycurl, which is on the repositories.
|
Re: HTTP Automation?
Quote:
|
Re: HTTP Automation?
Quote:
Curl does process POST's and GET's very well. If you use perl with WWW::Curl, I suggest you use HTML::Parser and/or HTML::TokeParser. It's easy to use to interpret the HTML file. For python it seems there is python-html5lib. Note also that you have the option of using WWW::Mechanize in perl and python-mehanize, but I have no experience with this. |
Re: HTTP Automation?
For Python, use BeautifulSoup.
|
All times are GMT. The time now is 20:21. |
vBulletin® Version 3.8.8