title: not able to parse rss feeds
body: <p>I'm trying to parse RSS feeds from a url using feedparser in python.</p>
  
  <pre><code>&gt;&gt;&gt; import feedparser 
  &gt;&gt;&gt; d = feedparser.parse('http://www.shop.inonit.in/RSSFeedDetails.aspx?PID=801')
  &gt;&gt;&gt; d
  {'feed': {'summary': u'&lt;span&gt;&lt;h1&gt;Server Error in \'/mobile\' Application.&lt;hr color="silver" size="1" width="100%" /&gt;&lt;/h1&gt;\n\n            
  &lt;h2&gt; &lt;i&gt;Attempted to divide by zero.&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;\n\n            &lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;\n\n            &lt;b&gt; Description: &lt;/b&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.\n\n            &lt;br /&gt;&lt;br /&gt;\n\n            &lt;b&gt; Exception Details: &lt;/b&gt;System.DivideByZeroException: Attempted to divide by zero.&lt;br /&gt;&lt;br /&gt;\n\n            
  &lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;\n\n            &lt;table bgcolor="#ffffcc" width="100%"&gt;\n               &lt;tr&gt;\n                  &lt;td&gt;\n                      &lt;code&gt;\n\nAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/code&gt;\n\n                  &lt;/td&gt;\n               &lt;/tr&gt;\n            &lt;/table&gt;\n\n            &lt;br /&gt;\n\n            &lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;\n\n            &lt;table bgcolor="#ffffcc" width="100%"&gt;\n               &lt;tr&gt;\n                  &lt;td&gt;\n                      &lt;code&gt;&lt;pre&gt;\n\n[DivideByZeroException: Attempted to divide by zero.]\n   System.Decimal.FCallDivide(Decimal&amp;amp; d1, Decimal&amp;amp; d2) +0\n   System.Decimal.Divide(Decimal d1, Decimal d2) +17\n   Martjack.CMS.PageControlsModelComp.GetPluginDataEnt(PageControlEnt objPageControlEnt, MerchantENT MerchantEnt, PageControlModel&amp;amp; objPageControlModel, ProductEnt_RE ProductEnt, String MobileVersion) +2324\n   
  Martjack.CMS.PageControlsModelComp.GetPageControlOutputData(PageModel pagemodel, PageControlEnt objPageControlEnt, MerchantENT MerchantEnt, String seocid, String combiType, String MobileVersion, ProductEnt_RE ProductEnt, String siteurl) +694\n   Martjack.CMS.PageControlsModelComp.GetPageControlModels(PageModel Pagemodel, MerchantENT MerchantEnt, String seocid, String combiType, String MobileVersion, DNDPageControlViewCollection objDNDPageControlViewCollection, Boolean isdndrequest, Int64 pgcontrolid, String siteurl) +919\n   Martjack.CMS.PageModelComp.GetPageModel(MerchantENT MerchantEnt, Int32 predefinedPageId, Boolean isPredefined, ChannelType channel, String seocid, String Bid, String combiType, String MobileVersion, Boolean isDndRequest, 
  DNDPageControlViewCollection ObjDNDPageControlViewCollection, Boolean ControlsInfo, Int64 pgcontrolid) +1717\n   MartJack.Facade.CMSFacade.GetPageModel(MerchantENT MerchantEnt, Int32 PageId, Boolean isPredefined, ChannelType channel, String seocid, String bid, String combitype, String mobileversion, Boolean isDndRequest, DNDPageControlViewCollection ObjDNDPageControlViewCollection, Boolean ControlsInfo, Int64 pgcontrolid) +119\n   MobileECommerce.MobileECommerce.ProductsController.GetPageModelByRequest(String seoid, String bid) +227\n   MobileECommerce.MobileECommerce.ProductsController.Index(String id, String seobrand, String category, String categoryparent) +54\n   lambda_method(Closure , ControllerBase , Object[] ) +272\n   
  System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17\n   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +212\n   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +239\n   System.Web.Mvc.&amp;lt;&amp;gt;c__DisplayClass15.&amp;lt;InvokeActionMethodWithFilters&amp;gt;b__12() +56\n   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +282\n   System.Web.Mvc.&amp;lt;&amp;gt;c__DisplayClass17.&amp;lt;InvokeActionMethodWithFilters&amp;gt;b__14() +20\n   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +201\n   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +351\n   System.Web.Mvc.Controller.ExecuteCore() +99\n   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +94\n   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10\n   
  System.Web.Mvc.&amp;lt;&amp;gt;c__DisplayClassb.&amp;lt;BeginProcessRequest&amp;gt;b__5() +43\n   System.Web.Mvc.Async.&amp;lt;&amp;gt;c__DisplayClass1.&amp;lt;MakeVoidDelegate&amp;gt;b__0() +21\n   System.Web.Mvc.Async.&amp;lt;&amp;gt;c__DisplayClass8`1.&amp;lt;BeginSynchronous&amp;gt;b__7(IAsyncResult _) +12\n   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +53\n   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +28\n   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +15\n   System.Web.Mvc.&amp;lt;&amp;gt;c__DisplayClasse.&amp;lt;EndProcessRequest&amp;gt;b__d() +34\n   System.Web.Mvc.SecurityUtil.&amp;lt;GetCallInAppTrustThunk&amp;gt;b__0(Action f) +7\n   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23\n   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +68\n   
  System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9\n   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +714\n   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +240\n&lt;/pre&gt;&lt;/code&gt;\n\n                  &lt;/td&gt;\n               &lt;/tr&gt;\n            &lt;/table&gt;\n\n            &lt;br /&gt;\n\n            
  &lt;hr color="silver" size="1" width="100%" /&gt;\n\n            &lt;b&gt;Version Information:&lt;/b&gt;\xa0Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272\n\n            &lt;/font&gt;'}, 'status': 302, 'version': u'', 'encoding': u'utf-8', 'bozo': 1, 'headers': {'content-length': '11348', 'x-powered-by': 'ASP.NET', 'set-cookie': 'SERVERID=HAS14; path=/', 'originserver': 'HAS14', 'server': 'Microsoft-IIS/7.5', 'connection': 'close', 'cache-control': 'private', 'date': 'Tue, 16 Apr 2013 08:03:59 GMT', 'content-type': 'text/html; charset=utf-8', 'x-aspnet-version': '4.0.30319'}, 'href': 
  u'http://www.shop.inonit.in/mobile/Products//NA/NA/0', 'namespaces': {}, 'entries': [], 'bozo_exception': SAXParseException('not well-formed (invalid token)',)}
  </code></pre>
  
  <p>I get nothing in the output, while if you go to the link (<a href="http://www.shop.inonit.in/RSSFeedDetails.aspx?PID=801" rel="nofollow">http://www.shop.inonit.in/RSSFeedDetails.aspx?PID=801</a>) it shows a whole lot of stuff!
  Maybe it is redirecting me to some other page that does't exist (as I tried crawling individual pages of this website using scrapy, but couldn't, since I was redirected to some non-existant url).</p>
  
  <p>Any help on this would be great. Thanks!</p>