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



or at least see if there is maybe an XML/JSON feed or perhaps a SOAP or WSDL connection...

because parsing the HTML will a) be a pain to set up in the first place and b) a pain to catch when they change the format of their site.



On Tue, Apr 15, 2008 at 5:43 PM, Slava Paperno <email@hidden> wrote:
Do you really have to read the prices from the HTML pages? That company probably pulls the prices out of a database--can't you conect to their database to pull the same information?

Slava


At 05:22 PM 4/15/2008, Mark Wheeler wrote:
Hi,

I've come across a chore that I'm not sure how to work out. Our
business uses a third party company to get prices for our site. These
prices can change frequently. But, our partner site has to contact
yet ANOTHER site to update it's pricing database so it will feed us
our prices. Yeah, I know - it's crazy, but that's the way it is, so
we deal with it. Bottom line is, I need to go and "check" the prices
of many products on our parter site so I can get the "real" current
price. That takes a lot of time. So here's what I thought to do, if
possible. 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. Again, I'm aware that this is an odd question
and circumstance and I 'm not sure I'm explaining myself clearly. But
if possible, this would be a REAL time saver. Any help is greatly
appreciated.

Thanks,

Mark
_______________________________________________
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

_______________________________________________
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

 _______________________________________________
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>)
 >Re: How to browse through pages automatically (From: Slava Paperno <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.