Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6935011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:02:41+00:00 2026-05-27T12:02:41+00:00

I want to provide rss feed under google app engine/python. I’ve tried to use

  • 0

I want to provide rss feed under google app engine/python.

I’ve tried to use usual request handler and generate xml response. When I access the feed url directly, I can see the feed correctly, however, when I’m trying to subscribe to the feed in google reader, it says that

‘The feed being requested cannot be found.’

I wonder whether this approach is right. I was considering using a static xml file and updating it by cron jobs. But while GAE doesn’t support file i/o, this approach seems not going to work.

How to solve this? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:02:42+00:00Added an answer on May 27, 2026 at 12:02 pm

    There’re 2 solutions I suggest:

    1. GAE-REST you can just add to your project and configure and it will make RSS for you but the project is old and no longer maintained.

    2. Do like I do, use a template to write a list to and like this I could succeed generating RSS (GeoRSS) that can be read via google reader where template is:

      <title>{{host}}</title>
      <link href="http://{{host}}" rel="self"/>
      <id>http://{{host}}/</id>
      <updated>2011-09-17T08:14:49.875423Z</updated>
      <generator uri="http://{{host}}/">{{host}}</generator>
      
      {% for entity in entities %}
      
      <entry>
      
      <title><![CDATA[{{entity.title}}]]></title>
      <link href="http://{{host}}/vi/{{entity.key.id}}"/>
      <id>http://{{host}}/vi/{{entity.key.id}}</id>
      <updated>{{entity.modified.isoformat}}Z</updated>
      <author><name>{{entity.title|escape}}</name></author>
      <georss:point>{{entity.geopt.lon|floatformat:2}},{{entity.geopt.lat|floatformat:2}}</georss:point>
      <published>{{entity.added}}</published>
      <summary type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">{{entity.text|escape}}</div>
      </summary>
      
      </entry>
      
      {% endfor %}
      
      </feed>
      

    My handler is (you can also do this with python 2.7 as just a function outside a handler for a more minimal solution):

    class GeoRSS(webapp2.RequestHandler):
    
        def get(self):
            start = datetime.datetime.now() - timedelta(days=60)
            count = (int(self.request.get('count'
                     )) if not self.request.get('count') == '' else 1000)
            try:
                entities = memcache.get('entities')
            except KeyError:
                entity = Entity.all().filter('modified >',
                                      start).filter('published =',
                        True).order('-modified').fetch(count)
            memcache.set('entities', entities)
            template_values = {'entities': entities, 'request': self.request,
                               'host': os.environ.get('HTTP_HOST',
                               os.environ['SERVER_NAME'])}
            dispatch = 'templates/georss.html'
            path = os.path.join(os.path.dirname(__file__), dispatch)
            output = template.render(path, template_values)
            self.response.headers['Cache-Control'] = 'public,max-age=%s' \
                % 86400
            self.response.headers['Content-Type'] = 'application/rss+xml'
            self.response.out.write(output)
    

    I hope some of this works for you, both ways worked for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use blogger for my blog and I am using Google App Engine for
I want to provide some dynamic content like an rss feed, so when they
I want to provide silverlight app to my customer while hosting the app at
I want to provide a custom Batcher for Hibernate to use (for this reason:
I want check that that provided Rss feed Link Is valid or not and
I want sell some .NET library and I want provide edition with full source
I want to provide a piece of Javascript code that will work on any
I want to provide dynamic download of files. These files can be generated on-the-fly
I want to provide my user with some meaningful error messages when network requests
I want to provide my colleagues with an interface (using Windows Forms or WPF)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.