rss

HTML parsing in Android

♀尐吖头ヾ 提交于 2019-12-01 13:25:33
I am trying to learn how to parse HTML, but as I don't have a lot of experience in either Java or Android, it's a little complicated. I have read the IBM XML parsing tutorial and have learned to parse an RSS feed. My problem is: I would like to get data from an HTML site. I have read some information on HTML cleaner, JSON, etc., but I can't find a good tutorial to help me. Do you have any tutorials that might be helpful? Thanks. Check out the following HTML parsers. There are more out there. Maybe one will work for you: HTMLCleaner: http://htmlcleaner.sourceforge.net/ TagSoup: http://ccil.org/

How to Make anypage a RSS feed Free?

こ雲淡風輕ζ 提交于 2019-12-01 13:20:01
问题 I wanted to import this as an RSS feed on my website http://www.huffingtonpost.com/news/yoga/ but it is not an RSS feed. Huffington post does have RSS feeds but they are so broad. I want one just about yoga. I see there are sites that do it but you have to pay for it. I just want to get the title, small description, and link back url like most rss feeds. 回答1: I tried a few services and the best results (=ease of use and good looking rss feed) I got with Kimono. They support JSON, CSV and RSS

Make chrome display an rss feed (2)

家住魔仙堡 提交于 2019-12-01 11:11:20
This question is a follow-up on this one: get google chrome to view an rss feed I copied the source code from this page (hope this is ok for the site-owner): http://www.petefreitag.com/rss/ . I escaped all quotes and made a php file out of it. The file looks like this: <?php header('Content-Type: application/rss+xml'); echo "<?xml version=\"1.0\" ?> <?xml-stylesheet type=\"text/css\" href=\"http://www.petefreitag.com/rss/simple_style.css\" ?> <rss version=\"2.0\"> <channel> <title>Pete Freitag's Homepage</title> <link>http://www.petefreitag.com/</link> <description>Covering ColdFusion, Java,

How to detect if a page is an RSS or ATOM feed

老子叫甜甜 提交于 2019-12-01 10:48:34
I'm currently building a new online Feed Reader in PHP. One of the features i'm working on is feed auto-discovery. If a user enters a website URL, the script will detect that its not a feed and look for the real feed URL by parsing the HTML for the proper tag. The problem is, the way im currently detecting if the URL is a feed or a website only works part of the time, and I know it can't be the best solution. Right now im taking the CURL response and running it through simplexml_load_string, if it can't parse it I treat it as a website. Here is the code. $xml = @simplexml_load_string( $site

Atom:link in RSS using Rome

荒凉一梦 提交于 2019-12-01 09:41:36
It is recommended to add to RSS 2.0. I am wondering if there is any Rome module available to add this tag? Like what they developed for content, media, etc . The blog post Adding Atom links to an RSS feed generated by ROME answers exactly that question: there is no build-in immediate support for Atom elements inside an RSS feed ... I’ve implemented an AtomContent class that holds a list of com.sun.syndication.feed.atom.Link but is easy extensible. The code is published as https://github.com/michael-simons/java-syndication . It's not a module, but you can use Channel.getForeignMarkup() if you

How to read image tag from RSS itunes

空扰寡人 提交于 2019-12-01 09:27:09
I try to read my iTunes RSS. I can read title, even itunes:subtitle but I have problems with the tag image. FEED: <?xml version="1.0" encoding="UTF-8"?> <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> <channel> <title>title of the podcast</title> <itunes:image href="http://www.MyWeb/myImg.png"/> </channel> </rss> PHP: $xml=("http://www.myWeb/rss.xml"); $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); $channel=$xmlDoc->getElementsByTagName('channel')->item(0); $channel_title = $channel->getElementsByTagName('title')//normal tag ->item(0)->childNodes->item(0)-

Make chrome display an rss feed (2)

主宰稳场 提交于 2019-12-01 07:38:13
问题 This question is a follow-up on this one: get google chrome to view an rss feed I copied the source code from this page (hope this is ok for the site-owner): http://www.petefreitag.com/rss/. I escaped all quotes and made a php file out of it. The file looks like this: <?php header('Content-Type: application/rss+xml'); echo "<?xml version=\"1.0\" ?> <?xml-stylesheet type=\"text/css\" href=\"http://www.petefreitag.com/rss/simple_style.css\" ?> <rss version=\"2.0\"> <channel> <title>Pete Freitag

Reading RSS feed using jQuery

北城余情 提交于 2019-12-01 07:17:41
I'm trying to show the title of my latest stumbleupon item using their RSS feed and jquery. The function I have is: function get_stumbleupon() { $.get("http://rss.stumbleupon.com/user/fredkelly/", function(data) { alert(data.title); }, "xml"); } Which returns nothing... I just simply want to get a few bits of info about the single latest item in the feed - how can I do this? Here's a tutorial on how to do Cross domain ajax with JQuery. Ólafur Waage gave a good cross site request topic, but there is also another post that actually fits better with your Cross Site RSS reading problem. Here is my

XML parsing : Reading CDATA

梦想与她 提交于 2019-12-01 06:46:51
<item><title>this is title</title><guid isPermaLink="true">http://www.i.com/video/nokia-lumia-920-deki-pureview_2879.html</guid><link>http://www.i.com/video/nokia-lumia-920-deki-pureview_2879.html</link> <description><![CDATA[this is the info.]]></description> <pubDate>Wed, 5 Sep 2012 22:10:00 UT</pubDate> <media:content type="image/jpg" expression="sample" fileSize="2956" medium="image" url="http://media.chip.com.tr/images/content/video/88/201209060102428081-0.jpg"/> <enclosure type="image/jpg" url="http://media.chip.com.tr/images/content/video/88/201209060102428081-0.jpg" length="2956"/><

SyndicationFeed: Content as CDATA?

那年仲夏 提交于 2019-12-01 06:19:41
I'm using .NET's SyndicationFeed to create RSS and ATOM feeds. Unfortunately, I need HTML content in the description element (the Content property of the SyndicationItem) and the formatter automatically encodes the HTML, but I'd rather have the entire description element wrapped in CDATA without encoding the HTML. My (simple) code: var feed = new SyndicationFeed("Title", "Description", new Uri("http://someuri.com")); var items = new List<SyndicationItem>(); var item = new SyndicationItem("Item Title", (string)null, new Uri("http://someitemuri.com")); item.Content = SyndicationContent