Saturday, November 22nd 2008 | dance | trends | lot10 on Squidoo | my zimbio
Google

What-is-ASM.com ::

RSS Feeds


Knowledgebase
Installation
Browse Nodes
Customization
Integration
WebDev
Interconnect
New On Squidoo
Browse Node Lookup
The Way Of The Web
Deals & Steals
OneAutoBox
OneHomeChoice
OneHotFuzz
OneHotPick
OnePhotoBox
OneShoeBox
OneToolBox
OneWatchBox
PickABag



We found that integrating RSS Feeds into our sites quiet eazy and straightfoward with the help of a couple of RSS Feed Parsors we came across at HotScripts.com.


RSS_GET Headlines
The first one that we used is the RSS_GET Headlines script from Aaron Dunlap.com, a simple and easy to install headlines grabber. Formatted properly this script returns us the news and other headlines as shown in the Google News box below.


The script comes in the form of a rss_get.php file which you have to open up and configure the update duration (we set our to 30 minutes), the location of the cache subdirectory (which is chmoded to 777, and the default urls for the script to use.

Include (); the rss_get.php script to the page where you want tha headlines to appear, set the number of headlines you want to grab and you are all set.


RSS Fetch
The second RSS parser that we used is RSS Fetch, by Drew Philips from NeoProgrammers.com. This script parses both the Title and Description of the source as can be seen from two examples given below.

The first example is the parser from Amazon.com's Syndicated content while the later is from Yahoo! News RSS.

No item elements found in rss feed.
rss
Amazon.com | Computer & Internet Books


Installation is just as straightfoward, open up the rss_fetch.php file, set the update interval (again we set ours to 30 minutes) and define your data cache directory (use absolute path for this).

rss
Yahoo! News Headlines | Technology

  • Engineers sentenced to 1 year for espionage case (AP)
  • AP - Two engineers from China were sentenced to a year in prison Friday for stealing computer chip designs from their Silicon Valley employers and trying to smuggle the secrets to their homeland to launch a government-backed startup there.
  • Broadband makes tiny town an English-teaching hub (AP)
  • <p><a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/ap/20081121/ap_on_hi_te/tec_english_from_the_range"><img src="http://d.yimg.com/us.yimg.com/p/ap/20081120/capt.262a52b060934adfb256eb6cc326047b.english_from_the_range_wybv101.jpg?x=97&y=130&q=85&sig=IAdpRJ_KrRVGftpysDNfPg--" align="left" height="130" width="97" alt="Kathleen Hampton stands by an orange signpost signaling the presence of an underground fiber optic cable running by her family's remote ranch in Washakie County, Wyo., in this May 2008, photo. Hampton works part-time for Eleutian Technology, a Ten Sleep company that connects area teachers with students in Korea for English-language classes via the Internet. (AP Photo/Bob Vines)" border="0" /></a>AP - The nearest Wal-Mart is two hours away, and only foul weather, a deer in the road or a Washakie County sheriff's deputy would slow down anyone with a mind to drive there faster.</p><br clear="all"/>


Again, include (); the rss_fetch.php script to the page where you want the parsed contents to appear, set the content number you want displayed and you are all set.

Integrating these and other scripts into our ASM sites are done using our predefined Integration Templates.


© 2006, dinodino :
All articles/tutorials are copyright and may not be reproduced without prior consent of their owners.


Copyright © 2005 - 2008   All Rights Reserved   WebDev by : What-is-ASM.com