<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Suggestions for Parsing Blog Feeds Using PHP?</title>
      <link>http://ask.metafilter.com/16850/Suggestions-for-Parsing-Blog-Feeds-Using-PHP/</link>
      <description>Comments on Ask MetaFilter post Suggestions for Parsing Blog Feeds Using PHP?</description>
	  	  <pubDate>Mon, 28 Mar 2005 22:04:58 -0800</pubDate>
      <lastBuildDate>Mon, 28 Mar 2005 22:04:58 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Suggestions for Parsing Blog Feeds Using PHP?</title>
  	<link>http://ask.metafilter.com/16850/Suggestions-for-Parsing-Blog-Feeds-Using-PHP</link>	
  	<description>Can anyone suggest good PHP books or existing scripts that can help me successfully parse RSS 1.0, 2.0 and Atom 0.3 feeds, then save them to a MySQL database? &lt;br /&gt;&lt;br /&gt; I&apos;m developing a website that aggregates entries from various blogs dedicated to a specific topic.   (Blog authors have agreed to participate.)  I&apos;ve currently got a version working using Ari Paparo&apos;s &lt;a href=&quot;http://www.aripaparo.com/archive/000526.html&quot;&gt;RSStoMySQL&lt;/a&gt; script, but it only seems to work with RSS 1.0 feeds.  I&apos;m successfully converting some non-1.0 feeds using FeedBurner.com, but it isn&apos;t working for others.  Basically the script seems very particular.  Any suggestions on other ways I can also successfully scrape Atom and RSS 2.0 feeds?  To be clear, my solution needs to save entries to a MySQL database so I can manage entries in several ways.</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2005:site.16850</guid>
  	<pubDate>Mon, 28 Mar 2005 21:15:26 -0800</pubDate>
  	<dc:creator>jeanmari</dc:creator>
	
	<category>blog</category>
	
	<category>parsing</category>
	
	<category>rss</category>
	
	<category>atom</category>
	
	<category>php</category>
	
</item>
<item>
  	<title>By: ubernostrum</title>
  	<link>http://ask.metafilter.com/16850/Suggestions-for-Parsing-Blog-Feeds-Using-PHP#284069</link>	
  	<description>For an intro to working with PHP and MySQL, Luke Welling and Laura Thomson&apos;s &lt;i&gt;&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0672326728/qid=1112075915/sr=2-1/ref=pd_ka_b_2_1/102-5378707-5867309&quot;&gt;PHP and MySQL Web Development&lt;/a&gt;&lt;/i&gt; is the best book on the market, IMO.&lt;br&gt;
&lt;br&gt;
And parsing feeds is pretty easy with &lt;a href=&quot;http://magpierss.sourceforge.net/&quot;&gt;MagpieRSS&lt;/a&gt;, which handles the various flavors of RSS and Atom.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16850-284069</guid>
  	<pubDate>Mon, 28 Mar 2005 22:04:58 -0800</pubDate>
  	<dc:creator>ubernostrum</dc:creator>
</item>
<item>
  	<title>By: steveminutillo</title>
  	<link>http://ask.metafilter.com/16850/Suggestions-for-Parsing-Blog-Feeds-Using-PHP#284070</link>	
  	<description>&lt;a href=&quot;http://magpierss.sourceforge.net/&quot;&gt;MagpieRSS&lt;/a&gt; will do the basic parsing for you, but will not save the feeds to a database.  &lt;a href=&quot;http://feedonfeeds.com/&quot;&gt;Feed on Feeds&lt;/a&gt; will, and so will &lt;a href=&quot;http://devlog.gregarius.net/docs/about&quot;&gt;Gregarius&lt;/a&gt;.  They are both designed to be end-user apps rather than tools as part of a larger system, but don&apos;t let that bother you.  They&apos;re open source, hack away!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16850-284070</guid>
  	<pubDate>Mon, 28 Mar 2005 22:06:19 -0800</pubDate>
  	<dc:creator>steveminutillo</dc:creator>
</item>
<item>
  	<title>By: cillit bang</title>
  	<link>http://ask.metafilter.com/16850/Suggestions-for-Parsing-Blog-Feeds-Using-PHP#284140</link>	
  	<description>The various versions of RSS and Atom aren&apos;t all that different from a parsing point of view. I&apos;d figure out how the script works and modify it to support them - it&apos;s mostly just changing the names of some tags.&lt;br&gt;
&lt;br&gt;
Also, knowing how your parser works will be useful when you find a feed that doesn&apos;t work properly and you get complaints.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16850-284140</guid>
  	<pubDate>Tue, 29 Mar 2005 05:36:17 -0800</pubDate>
  	<dc:creator>cillit bang</dc:creator>
</item>

    </channel>
</rss>
