rss

How to hide RSS page from everyone except FeedBurner

折月煮酒 提交于 2019-12-24 09:38:59
问题 I want to hide my feed from everyone except FeedBurner. When FeedBurner visits my rss page, I want them to be able to crawl. When anybody else visits that page, it will be redirected to my FeedBurner page. How would you do it? My blog is written in PHP. (custom code) Additional info: I prefer to redirect using the head("location: ") method in PHP instead of .htaccess My rss page is: domain.tld/feed/ 回答1: The Feeburner UserAgent is FeedBurner/1.0. You can use $_SERVER['USER_AGENT'] to detect

Wordpress RSS feed with custom description?

邮差的信 提交于 2019-12-24 09:13:53
问题 Is there a nice and simple way to add a filter to the wordpress RSS feed functions? I want to insert some custom text into the <description> tag of my RSS2 feed and the <summary> tag of my Atom feed. Is there any easy way to do that? I don't have templates for my feeds in my theme (like wp-rss2.php or wp-atom.php). I've just added the normal <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" /> to my <head> Any

Android ListView - RSSPro app has stopped working?

≯℡__Kan透↙ 提交于 2019-12-24 08:53:02
问题 I've followed this tutorial but when I try to run the application I get "Unfortunately RSSPro has stopped." This is my code for the RSSProActivity: package com.android.rss; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserFactory; import android.app

Problem parsing RSS with a PHP script

那年仲夏 提交于 2019-12-24 08:18:49
问题 im using a very common php script to parse RSS; function getRSS($source,$quien) { $start = microtime(true); ini_set('default_socket_timeout', 1); global $arrFeeds, $downItems, $time_taken; $arrFeeds = array(); $ch = curl_init($source); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $content = curl_exec($ch); curl_close($ch); $doc = new DOMDocument(); $doc->loadXML($content); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = array ( 'title' => sistema($node-

how to track traffic that comes from RSS through google analytics?

三世轮回 提交于 2019-12-24 07:47:06
问题 Is there a way to track the traffic that comes from RSS using google analytics? In other words to measure page views on RSS feeds through RSS readers and Click-thrus to the site from RSS feeds and readers? Can I add Google Analytics tracking variables, like utm_source , for RSS feeds?? If so, how? 回答1: Pageviews in RSS readers aren't really reliable - the standard doesn't include javascript, and I'd expect RSS readers to simply ignore scripts. Also, the concept of a 'page' doesn't really

Feedjira not adding content and author

天大地大妈咪最大 提交于 2019-12-24 07:35:22
问题 I've just started on Rails again and have recently followed the Sitepoint guide to building an RSS Feed app. I followed the instructions verbatim, but am getting the error undefined method 'html_safe' for nil:NilClass . I've looked into the database and it seems Feedjira is not parsing the content or author attributes into the database. After a quick google, I found the following issues on the Github page #178 and #176 dated back from August 13, but given the significant issue this causes I'm

iTunes RSS Feed always returns duration=30000

青春壹個敷衍的年華 提交于 2019-12-24 07:15:23
问题 I'm using the following link in order to get top 10 songs from iTunes for USA: https://itunes.apple.com/us/rss/topsongs/limit=10/explicit=true/json I need to have every song's duration, but I always receive value 30000 for duration: "im:duration": { "label": "30000" } What does it mean, and is there a way to get the right duration value? Thanks. 回答1: I used this online time calculator and the sum of all songs's duration is 37.97 minutes; Checking a song sample Setting the World on Fire (with

How do I get the description and imageUrl inside description tag when parsing an RSS feed using React Native?

孤街醉人 提交于 2019-12-24 05:47:08
问题 This is how an item from the RSS feed that Im trying to parse looks like: <item> <title> Former cop gets 18 years in prison for shooting civilian to death </title> <description> <![CDATA[ <a href="https://e.vnexpress.net/news/news/former-cop-gets-18-years-in-prison-for-shooting-civilian-to-death-4020110.html"><img width=130 height=100 src="https://i-english.vnecdn.net/2019/11/30/phuoc146331574997301-157508140-8364-4799-1575086150_180x108.jpg" ></a></br>A Dong Nai court sentenced a former

Best practice to keep RSS feeds unique in sql database

牧云@^-^@ 提交于 2019-12-24 03:03:29
问题 I am working on a project which shows rss feeds from different sites. I keep them in the database, every 3 hours my program fetches and inserts them into sql database. I want unique records for providers not to show duplicate content. But problem is some providers do not give GUID field, and some others gives GUID field but not pubdate.. And some others does not even give GUID or PubDate just title and link. So to keep rss feeds uniqe in sql server what would be the best way? Should I check

Displaying content from an RSS feed in an iphone app

不问归期 提交于 2019-12-24 02:30:21
问题 I have seen some tutorials on the subject, but they all go half into it and then leave a person wondering. How can I stream an rss feed into an iphone app. I know the xml should be read in, parsed etc. But then I am not sure how to display the information I need like, images, embedded videos etc. If someone could just point me in the right direction I would be extremely grateful. Thanks in advance 回答1: First, you need some type of XML parser. You can use the built in NSXMLParser or a slew of