<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: feeds code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 27 Jul 2008 02:48:06 GMT</pubDate>
    <description>DZone Snippets: feeds code</description>
    <item>
      <title>Using an HTTP proxy with Universal Feed Parser</title>
      <link>http://snippets.dzone.com/posts/show/1611</link>
      <description>without using http_proxy environment variable..&lt;br /&gt;&lt;br /&gt;&lt;code&gt;import urllib2, feedparser&lt;br /&gt;&lt;br /&gt;proxy = urllib2.ProxyHandler( {"http":"http://your.proxy.here:8080/"} )&lt;br /&gt;d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml', handlers = [proxy])&lt;/code&gt;</description>
      <pubDate>Thu, 02 Mar 2006 09:53:19 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1611</guid>
      <author>peter (Peter Cooperx)</author>
    </item>
    <item>
      <title>RFC-822 compatible dates in RSS feeds</title>
      <link>http://snippets.dzone.com/posts/show/450</link>
      <description>If you're building RSS 2.0 files with .rxml files on your Rails app, this sort of line will get you a valid date/time:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;xml.pubDate(p.updated_at.strftime("%a, %d %b %Y %H:%M:%S %z"))&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;If you're just using strftime someplace else, perhaps in PHP, try:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;strftime("%a, %d %b %Y %H:%M:%S %z")&lt;/code&gt;</description>
      <pubDate>Mon, 04 Jul 2005 03:22:02 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/450</guid>
      <author>peter (Peter Cooperx)</author>
    </item>
    <item>
      <title>Atom / RSS feed of your GMail account</title>
      <link>http://snippets.dzone.com/posts/show/262</link>
      <description>&lt;code&gt;https://USERNAME:PASSWORD@gmail.google.com/gmail/feed/atom&lt;/code&gt;</description>
      <pubDate>Sat, 07 May 2005 22:45:40 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/262</guid>
      <author>peter (Peter Cooperx)</author>
    </item>
  </channel>
</rss>
