atom-feed

How to auto log into gmail atom feed with Python?

吃可爱长大的小学妹 提交于 2019-11-28 20:50:26
Gmail has this sweet thing going on to get an atom feed: def gmail_url(user, pwd): return "https://"+str(user)+":"+str(pwd)+"@gmail.google.com/gmail/feed/atom" Now when you do this in a browser, it authenticates and forwards you. But in Python, at least what I'm trying, isn't working right. url = gmail_url(settings.USER, settings.PASS) print url opener = urllib.FancyURLopener() f = opener.open(url) print f.read() Instead of forwarding correctly, it's doing this: >>> https://user:pass@gmail.google.com/gmail/feed/atom Enter username for New mail feed at mail.google.com: This is BAD! I shouldn't

Pagination in feeds like ATOM and RSS?

…衆ロ難τιáo~ 提交于 2019-11-28 20:17:40
Is this even possible? Perhaps? <link rel=“next” type=“application/atom+xml” href=”[//path/page2]”></link> It appears that ATOM allows the following syntax (first Google result for ' ATOM feed next/previous '): <link rel="self" type="application/atom+xml" href="http://www.syfyportal.com/atomFeed.php?page=3"/> <link rel="first" href="http://www.syfyportal.com/atomFeed.php"/> <link rel="next" href="http://www.syfyportal.com/atomFeed.php?page=4"/> <link rel="previous" href="http://www.syfyportal.com/atomFeed.php?page=2"/> <link rel="last" href="http://www.syfyportal.com/atomFeed.php?page=147"/> I

No Nodes Selected from Atom XML document using XPath?

这一生的挚爱 提交于 2019-11-28 12:19:08
I'm trying to parse an Atom feed programmatically. I have the atom XML downloaded as a string. I can load the XML into an XmlDocument . However, I can't traverse the document using XPath. Whenever I try, I get null . I've been using this Atom feed as a test: http://steve-yegge.blogspot.com/feeds/posts/default Calling SelectSingleNode() always returns null , except for when I use " / ". Here is what I'm trying right now: using (WebClient wc = new WebClient()) { string xml = wc.DownloadString("http://steve-yegge.blogspot.com/feeds/posts/default"); XmlNamespaceManager nsMngr = new

Sax parsing and encoding

你离开我真会死。 提交于 2019-11-28 11:24:24
I have a contact that is experiencing trouble with SAX when parsing RSS and Atom files. According to him, it's as if text coming from the Item elements is truncated at an apostrophe or sometimes an accented character. There seems to be a problem with encoding too. I've given SAX a try and I have some truncating taking place too but haven't been able to dig further. I'd appreciate some suggestions if someone out there has tackled this before. This is the code that's being used in the ContentHandler: public void characters( char[], int start, int end ) throws SAXException { // link = new String

Setting up an Github Commit RSS feed

半城伤御伤魂 提交于 2019-11-27 16:41:41
I am trying to have my github commits as an RSS feed but so far I have not managed to figure it out. I know that a private feed is available with the following syntax: https://github.com/username.atom?token=token But this the users activity feed. I would like a commit feed of one of my projects. Thanks in advance! Perfect, thank you!! this was the final syntax: https://github.com/username/repository_name/commits/branch_name.atom?login=login&token=token. Still cant view commits on all branches though. You want https://github.com/whatever/commits/master.atom , like for the Cloudera flume

What RSS parser should I use in PHP?

半世苍凉 提交于 2019-11-27 16:11:13
I am searching an RSS parser written in PHP. The problem is not that I cannot find one. The problem is that there are too many and it's hard to decide which one to use (especially when I have no experience with them and to try them is too time consuming). Can anybody recommend me a "good" RSS parser? The following requirements are important to me (given in order of importance): It's able to extract all information given in the feed (not only title, description and link but everything what is there, for example feeds author, feeds icon, items tags and so on). It should be able to read not only

SelectNodes not working on stackoverflow feed

别来无恙 提交于 2019-11-27 15:02:46
I'm trying to add support for stackoverflow feeds in my rss reader but SelectNodes and SelectSingleNode have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet. I have gotten it to work by removing all attributes from the feed tag, but that's a hack and I would like to do it properly. So, how do you use SelectNodes with atom feeds? Here's a snippet of the feed. <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:thr="http://purl

java library for reading RSS and ATOM feeds [duplicate]

偶尔善良 提交于 2019-11-27 14:24:34
问题 This question already has an answer here : How to write an RSS feed with Java? (1 answer) Closed 4 years ago . I am looking for libraries which can read RSS / ATOM feeds in my J2EE application (based on JBoss Seam). Is Rome the only application there for reading feeds? I am assuming the Seam RSS integration is only for generating RSS feeds and not for reading feeds. 回答1: Have you had a look into the following list? http://java-source.net/open-source/rss-rdf-tools Even though it has been

How to auto log into gmail atom feed with Python?

孤街醉人 提交于 2019-11-27 13:27:22
问题 Gmail has this sweet thing going on to get an atom feed: def gmail_url(user, pwd): return "https://"+str(user)+":"+str(pwd)+"@gmail.google.com/gmail/feed/atom" Now when you do this in a browser, it authenticates and forwards you. But in Python, at least what I'm trying, isn't working right. url = gmail_url(settings.USER, settings.PASS) print url opener = urllib.FancyURLopener() f = opener.open(url) print f.read() Instead of forwarding correctly, it's doing this: >>> https://user:pass@gmail

Pagination in feeds like ATOM and RSS?

无人久伴 提交于 2019-11-27 12:50:52
问题 Is this even possible? Perhaps? <link rel=“next” type=“application/atom+xml” href=”[//path/page2]”></link> 回答1: It appears that ATOM allows the following syntax (first Google result for ' ATOM feed next/previous '): <link rel="self" type="application/atom+xml" href="http://www.syfyportal.com/atomFeed.php?page=3"/> <link rel="first" href="http://www.syfyportal.com/atomFeed.php"/> <link rel="next" href="http://www.syfyportal.com/atomFeed.php?page=4"/> <link rel="previous" href="http://www