rss

How do I correctly create a Zend Feed?

若如初见. 提交于 2019-12-12 11:21:22
问题 I have successfully created a simple RSS feed, but entries keep coming back as unread and updated, and entries deleted from the client reappear everytime I ask mail to update the feed. What am I doing wrong? I use this simple function to create an rss feed: public static function getFeed($db) { $title = 'Latest feeds'; $feedUri = '/rss/'; //link from which feed is available $link = 'http://' . $_SERVER['HTTP_HOST'] . $feedUri; //create array according to structure defined in Zend_Feed

Is there an official MRSS xsd?

心已入冬 提交于 2019-12-12 11:18:34
问题 I am trying to validate mrss feeds against an official mrss xsd, maybe from yahoo, but couldn't find one. I have been using one from http://yarfraw.sourceforge.net/xsd/extension/mrss.xsd but I am not sure how reliable this is. the javax.xml.validation package throws this exception when I use the above xsd: the line that throws the exception: Schema schema = factory.newSchema(new File("path to mrss.xsd")); Exception: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'dcterms

Php Rss feed use img in CDATA -> content:encoded

旧时模样 提交于 2019-12-12 10:18:29
问题 I need to display only the image from the CDATA content. <item> <title>... </title> <link>... </link> <description>... </description> <category>... </category> <pubDate>... </pubDate> <guid>... </guid> <content:encoded><![CDATA[<a href="..."><img alt="" src="..."/></a>...]]></content:encoded> <enclosure url="..." type="image/jpeg" length="171228"></enclosure> </item> my code i tried looks like this an works fine for the part <?php $html = ""; $url = "http://www...."; $xml = simplexml_load

How To Call Medium RSS Feed

孤人 提交于 2019-12-12 09:46:15
问题 Medium has an RSS feed available at https://medium.com/feed/[@username]. I'm trying to fetch all my blog posts using an XMLHTTPRequest. When I test on local, I run into CORs errors. When I turn on CORs Chrome extension, I get a 401 error. Any ideas? Has anyone succeeded in calling Medium RSS? 回答1: To get https://medium.com/feed/[@username] content using XHR, you can make the XHR request through a proxy of some kind. For example, trying giving your current XHR code this URL: https://cors

PHP access to iTunes tags in an RSS feed

北战南征 提交于 2019-12-12 09:26:17
问题 I need to get access to the iTunes tags in an RSS feed using PHP. I've used simplepie before for podcast feeds, but I'm not sure how to get the iTunes tags using it. Is there a way to use simplepie to do it or is there a better way? Okay I tried Simple XML. All this (the code below) seems to work $feed = simplexml_load_file('http://sbhosting.com/feed/'); $channel = $feed->channel; $channel_itunes = $channel->children('http://www.itunes.com/dtds/podcast-1.0.dtd'); $summary = $channel_itunes-

How to setup cron job on Amazon Linux AMI

五迷三道 提交于 2019-12-12 08:37:42
问题 I am hosting Tiny Tiny RSS site hosted on Amazon Linux AMI To update the feed automatically I have to run following cron job. Reference http://tt-rss.org/redmine/projects/tt-rss/wiki/UpdatingFeeds */30 * * * * /usr/bin/php /var/www/html/tt-rss/update.php --feeds --quiet Here is the step I did: sudo su cd /etc crontab -e add this line */30 * * * * /usr/bin/php /var/www/html/tt-rss/update.php --feeds --quiet But I still got the message "Update Daemon is not running". May I know is this correct

How do I create a RSS feed using excel? [closed]

女生的网名这么多〃 提交于 2019-12-12 06:48:30
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I want to create an RSS feed using data in excel. Something like this Product ID Product Name Product Price Delivery Date 11111 Apple iphone 650 2-4 days 22222 Samsung Galaxy 600 5-6 days How do i directly

Android:tags for RSS feed parsing

て烟熏妆下的殇ゞ 提交于 2019-12-12 06:46:56
问题 Here is my RSS feed im trying to parse <PetrolPrices> <Fuel type="Unleaded"> <Highest units="p">132.9</Highest> <Average units="p">128.8</Average> <Lowest units="p">125.9</Lowest> </Fuel> <Fuel type="Diesel"> <Highest units="p">137.9</Highest> <Average units="p">132.4</Average> <Lowest units="p">129.7</Lowest> </Fuel> <Fuel type="Super Unleaded"> <Highest units="p">142.9</Highest> <Average units="p">137.7</Average> <Lowest units="p">132.9</Lowest> </Fuel> <Link> http://www.petrolprices.com

Parse RSS title into HTML using Javascript

余生颓废 提交于 2019-12-12 05:34:16
问题 I am trying to populate a menu on a webpage with the 5 latests topics from our site's RSS newsfeed using Javascript (e.g. jQuery - we import v. 1.9.1 already), and I have been trawling the content in here to find something that work, but the answer most suiting my problem seems to be using deprecated scripts. The RSS feed is stored on our own server, so reading rights should be ensured. I would prefer using Javascript of some sort and I simply need to have the titles of e.g. the latest X news

Read ReadElementExtensions from RSS ATOM

痞子三分冷 提交于 2019-12-12 05:12:26
问题 I have the following code and I cannot deserialize a RSS ATOM feed to a class. The "team" node cannot be read and the rest of the properties don't seem to be getting filled. When I comment out the "team" node. This is my code: The URL of the RSS feed: http://www.volleybal.nl/application/handlers/export.php?format=rss&type=poule&standen=D3K&iRegionId=7000 public static SyndicationFeed GetFeed(string feedUrl) { Uri serviceUri = new Uri(feedUrl); WebClient downloader = new WebClient(); Stream