atom-feed

Combining multiple atom feeds into one

早过忘川 提交于 2019-12-11 23:29:48
问题 I have 4 resources and I'd like to provide an atom feed for each one but I don't want to ask people sign up for 4 feeds (cos they won't) so is there a guide that explains the best way to combine multiple atom feeds into one master feed? 回答1: Answering my own question here. So far I've found yahoo pipes and rss mix that can do this job. 来源: https://stackoverflow.com/questions/5263913/combining-multiple-atom-feeds-into-one

Random Number in RSS feed

雨燕双飞 提交于 2019-12-11 15:24:12
问题 This is what I currently have for my PHP file: <?php header("Content-type: text/xml"); ?> <?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; ?> <rss version="2.0"> <channel> <title>My Website</title> <link>http://www.mywebsite.com</link> <description>The Title of My Website</description> <pubDate>Tue, 15 Apr 2008 18:00:00 +0000</pubDate> <item> <title>Website Directory - Page NUMBER</title> <pubDate><?echo date('Y/m/d H:i:s');?></pubDate> <link>http://www.mywebsite.com/directory/NUMBER<

Format to use for exposing structured meta data (dublin core, rdf, atom)?

三世轮回 提交于 2019-12-11 05:49:03
问题 In an altruistic manner I would like to expose as much structured data about my website. I also wouldn't mind SEO boost but its secondary. Seems there are a couple of options: Full on RDF (kill me now XML) Atom with your own custom tags (liking that) RDFa in your webpage (might help SEO) Dublin Core Meta tags Dublin Core using RDFa Atom with RDFa I'm just trying to make it easy for people to get data off my site. The nice thing about standards is that there are so many of them to choose from.

Serializing a FeedParser object to Atom

家住魔仙堡 提交于 2019-12-11 03:17:10
问题 I use feedparser http://www.feedparser.org/ to parse Atom feeds and I do some manipulation on the resulting Python objetcs. After that, I would like to serialize the objects back to Atom. But feedparser does not seem to offer a way to do so? I noticed other Atom libraries like gdata http://code.google.com/p/gdata-python-client/ or demokritos http://jtauber.com/demokritos/ but, to tell the truth, they seem very difficult for the beginner. I use feedparser precisely because of its extreme

Update Existing Atom Entry

白昼怎懂夜的黑 提交于 2019-12-11 01:43:09
问题 I manage an atom feed that needs to be able to accommodate revisions to articles and somehow have client feed readers acknowledge the update. Currently the only thing I can do is make an entire new entry in my feed however that's not the desired outcome. I thought I'd be able to update the time stamp on the updated and/or published element of the entry and the readers would handle the update appropriately. However all my testing with google reader and various other feed readers are ignoring

How to display item photo in atom feed?

喜你入骨 提交于 2019-12-10 17:29:26
问题 I want to display a photo for each item in atom feed. I used this structure for my entry <entry> <title>TITLE</title> <link href="http://page" /> <id>http://page</id> <updated>DATE</updated> <summary>DESCRIPTION</summary> <content type="image/jpg" src="http://image" /> </entry> but when adding the feed in Google Reader, it will not display images. What is the best way to do so? 回答1: For Atom or RSS you need to enable hotlinking to your files for Google Reader to read them, as decribed at:

How to use Abdera atom client to send content and attachment

别说谁变了你拦得住时间么 提交于 2019-12-10 16:48:21
问题 We are using Abdera to interact with the IBM Connections API, but our problem is mostly related to Abdera itself. I think there is a bug in Abdera that does not allow you send an Entry that contains content and attachments in a single request. As a workaround you would probably be able to send two separate requests to create first with content and update afterwards with attachment. Sadly the Connections API required you to have all data in a single request or your old data is not preserved.

Confused about namespaces in Atom feed

ε祈祈猫儿з 提交于 2019-12-10 15:26:43
问题 Is there any difference between <opensearch:totalResults>1000</opensearch:totalResults> and <totalResults xmlns="opensearch">1000</totalResults> I'm using the SyndicationFeed class in .NET to generate an Atom feed, and I need to add some elements for the opensearch standard, but it keeps adding elements like the latter one above when I want it to add them like the former one. The code: feed.ElementExtensions.Add("totalResults", "opensearch", "2"); EDIT The root feed tag looks like this <feed

How can I retrieve all posts from a Blogger (blogspot.com) blog?

谁都会走 提交于 2019-12-10 13:22:09
问题 I have a blog at http://westernwakefarmersmarket.blogspot.com/ and I'd like to migrate the content to a new MVC web application I'm developing. I'm trying to retrieve all of the existing posts to migrate them into a database. I'm having trouble getting all of the posts, however. When I connect to the blog with Windows Live Writer, it's able to retrieve all of the posts (probably over a hundred). When I point to the ATOM feed for the blog at http://www.blogger.com/feeds/7916832134968916231

Retrieving raw XML for items with feedparser

為{幸葍}努か 提交于 2019-12-10 11:13:53
问题 I'm trying to use feedparser to retrieve some specific information from feeds, but also retrieve the raw XML of each entry (ie. elements for RSS and for Atom), and I can't see how to do that. Obviously I could parse the XML by hand, but that's not very elegant, would require separate support for RSS and Atom, and I imagine it could fall out of sync with feedparser for ill-formed feeds. Is there a better way? Thanks! 回答1: I'm the current developer of feedparser. Currently, one of the ways you