Re: Is it possible for part of a page to be a php include ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On the other hand, it isn't quite clear that you're not wanting to  
'scrape' content from someone else's web page, a tricky endeavor that  
involves devising some regular expression to find only the part of  
the page you want to keep and discarding the rest. You'd need to  
fiddle quite a bit with that one, beginning with downloading the page  
into your automated system and see if it is even the same page  
delivered to your web browser. I have a site that uses weather and  
stock quotes in this way and I pray every night that they (the  
offsite source of the data I scrape) don't go change their format on  
me. I use a combination of lynx (to download and save it once every  
fifteen minutes or so) crontab and I think i ended up using sed to  
extract the data. It was an adventure to be sure. ;) I'm sure there  
must be better ways, there are certainly a bunch of different ways to  
do this but none are particularly easy. I had another site I was  
asked to get data from also but that site used randomized a sequence  
presentation to give different paragraphs (lenders in that case) top  
billing and there just wasn't much reason to work that hard to save  
the data entry person a minute a week to update both sites by hand.  
OTOH, if I was *hosting* both sites it would have been much easier!

-m



PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux