|
Posted by Manuel Lemos on 09/26/57 12:01
on 01/17/2008 07:52 PM mr_marcin said the following:
> Hi
>
> Does anybody have some idea how to input some text into inputbox on
> one page, than press some button on that page, that will load another
> page, and finally read the responde? Suppose I want to write a price
> comparision engine, where I would like to parse shops website for
> price each time user wants.
>
> I have found similar feature in Symfony framework, called sfBrowser
> (or sfTestBrowser). These are made for automated functional testing,
> but should provide the functinality I am requesting.
>
> The question is: will this be efficient enough? Maybe there are other
> ways to achieve this? Of course I can always try to make it more
> manually - look for some pattern in url (search is usually done via
> GET), and parse output html.
You may want to try this HTTP client class. Basically it acts like a
browser accessing pages, submitting forms, collecting cookies, handling
redirection, etc. which seems what you need to retrieve the pages with
the prices you want to grab.
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
[Back to original message]
|