rss

Setting up an Github Commit RSS feed

陌路散爱 提交于 2019-12-17 15:04:52
问题 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

Reading non-standard elements in a SyndicationItem with SyndicationFeed

a 夏天 提交于 2019-12-17 10:17:01
问题 With .net 3.5, there is a SyndicationFeed that will load in a RSS feed and allow you to run LINQ on it. Here is an example of the RSS that I am loading: <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <title>Title of RSS feed</title> <link>http://www.google.com</link> <description>Details about the feed</description> <pubDate>Mon, 24 Nov 08 21:44:21 -0500</pubDate> <language>en</language> <item> <title>Article 1</title> <description><![CDATA[How to use StackOverflow

How To Discover RSS Feeds for a given URL

ε祈祈猫儿з 提交于 2019-12-17 08:30:38
问题 I get a URL from a user. I need to know: a) is the URL a valid RSS feed? b) if not is there a valid feed associated with that URL using PHP/Javascript or something similar (Ex. http://techcrunch.com fails a), but b) would return their RSS feed) Edit: See my answer below 回答1: Found something that I wanted: Google's AJAX Feed API has a load feed and lookup feed function (Docs here). a) Load feed provides the feed (and feed status) in JSON b) Lookup feed provides the RSS feed for a given URL

ASP.NET special character problem

痴心易碎 提交于 2019-12-14 04:22:26
问题 I'm building an automated RSS feed in ASP.NET and occurrences of apostrophes and hyphens are rendering very strangely: "Here's a test" is rendering as "Here’s a test" I have managed to circumvent a similar problem with the pound sign (£) by escaping the ampersand and building the HTML escape for £ manually as shown in in the extract below: sArticleSummary = sArticleSummary.Replace("£", "&pound;") But the following attempt is failing to resolve the apostrophe issue, we stil get ’ on the

Lowercase all tag names and attributes inside RSS XML using XSLT

ぐ巨炮叔叔 提交于 2019-12-14 04:20:01
问题 How can I please turn the below (capital letter tags i.e. <RSS> and capital letter attributes i.e. TYPE="audio/mpeg" ) <RSS xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> <CHANNEL> <title>Example Title</title> <LINK>Example Link</link> <atom:link HREF="http://example.com/feed" REL="self" TYPE="application/rss+xml"/> <itunes:subtitle>Example subtitle with itunes namespace</itunes:subtitle> <itunes:owner> <itunes:name>OWNER NAME

Android Rss Image Problem

廉价感情. 提交于 2019-12-14 03:42:15
问题 Hello Everybody I am relatively new to Android Development and I am creating an RSS Reader for a news site. The problem I have is that site with the rss feed of which I want to get images is of a type "< img src="http......"" What I have done for the code on android is ...2 classes ...RssItem and RssItem Displayer public class RssItem { private String title; private String description; private Date pubDate; private String link; private static ImageView image; public RssItem(String title,

get google chrome to view an rss feed

爱⌒轻易说出口 提交于 2019-12-14 03:34:54
问题 I have an .php script that generates an RSS-Feed dynamically. I want to link a .css stylesheet to this script to enable browsers that don't have a builtin RSS-viewer to display this feed. I do this with echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n"; echo "<?xml-stylesheet type=\"text/css\" href=\"rss.css\" ?>\r\n"; as the first output commands of the .php-file. However, browsers like chrome still don't display the feed as webpage - instead chrome shows me the code of this page. From

Extract image URL in a string (RSS with syndicationfeed)

跟風遠走 提交于 2019-12-14 03:32:31
问题 i have this : <img src="http://MyUrl.JPG.jpg" width="180" ... and i need this : http://MyUrl.JPG.jpg thank 回答1: Complete solution with regex : string source ="<img src=\"http://MyUrl.JPG.jpg\""; var reg = new Regex("src=(?:\"|\')?(?<imgSrc>[^>]*[^/].(?:jpg|bmp|gif|png))(?:\"|\')?"); var match=reg.Match(source); if(match.Success) { var encod = match.Groups["imgSrc"].Value; } 回答2: If that's really all you have you might get away with a regular expression, like src="([^"]+) However, you can't

Undefined item element XML/RSS

时光总嘲笑我的痴心妄想 提交于 2019-12-14 02:29:31
问题 I modified the Wordpress RSS feed, but I get RSS validation errors. How do I fix these? Where/how do I define these name spaces etc.? Undefined item element: content:custom http://tinyurl.com/npgmha3 回答1: Based on discussion in the comments, your actual problem is this: I want to add some custom tags to my RSS feed so that it is treated as a valid feed, but my own script can get some extra information out of it which other readers will completely ignore. In your attempted solution, you have

Ruby On Rails and “external classes”

◇◆丶佛笑我妖孽 提交于 2019-12-13 19:31:18
问题 I have RSS-reader class for Ruby, and I'd want to use it in rails, where does the rss_reader.rb go? To "libs/rss_reader.rb"? I tried that, then requiring it in controller, but I get error: 'MissingSourceFile (no such file to load -- lib/RssReader)' 回答1: If you put your class in "RAILS_ROOT/lib/" it will be autoloaded and require 'lib/rss_reader' should work. 来源: https://stackoverflow.com/questions/1146946/ruby-on-rails-and-external-classes