Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to browse through pages automatically



On Apr 15, 2008, at 3:22 PM, Mark Wheeler wrote:

Can a PHP script, when given the correct "starting" page, automatically click through the 2 pages - parse the page somehow - necessary to update the prices? It's just as if I were doing it, but the script is the "browser" instead of me. I'm thinking this can be called by a cron job.

For simulating a web browser, Snoopy is good:

http://sourceforge.net/projects/snoopy/

"Snoopy is a PHP class that simulates a web browser."

For parsing the HTML sent to the "browser," Tidy can convert invalid HTML to valid XML, and PHP's built-in DOM functions can parse XML:

http://tidy.sourceforge.net/
http://php.net/dom
http://php.net/domxml

Add in scheduling with cron and you've just created a search engine.

Peace,
Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden
References: 
 >How to browse through pages automatically (From: Mark Wheeler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.