rss

PHP errors parsing XML (RSS feed)

末鹿安然 提交于 2019-12-04 09:26:37
I'm using a PHP class based on the one found in this answer to parse five RSS feeds. Four of the five work without any troubles, but one of them is giving me some errors. Is it mal-formed XML or some other problem? I don't have control over the source of the RSS feed, but hope to notify the owner if the problem is theirs. Thanks in advance. PHP Errors: Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 35: parser error : xmlParseEntityRef: no name in _rss.php on line 59 Warning: simplexml_load_string() [function.simplexml-load-string]: ne is June 30. The award will

Google feed api deprecated, How can i find rss feed of web site? [closed]

主宰稳场 提交于 2019-12-04 09:08:55
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I used Google Feed API for finding rss feeds of special keywords or websites, now this api deprecated, so i need alternative way for finding rss of website, I google it but i cannot find any good way.. Find rss from parsing html of website is not good for me because i want to find all rss from any subdomains of it. For example in the past when with using Google Feed API i give ieee.org and get all rss

What is the correct MIME type to use for an RSS feed?

蹲街弑〆低调 提交于 2019-12-04 07:38:39
问题 Is one MIME type preferable to ensure compatibility with RSS readers and other scrapers? The options seem to be: text/xml text/rss+xml Interestingly Stackoverflow is using text/html. 回答1: Neither. It's application/rss+xml http://www.rssboard.org/rss-mime-type-application.txt 回答2: Other commenters have pointed out that the single correct mime type is application/rss+xml, . However, if you are setting an accept header for a client then Accept: application/rss+xml, application/rdf+xml;q=0.8,

DOM Remove Child from RSS XML

北城以北 提交于 2019-12-04 07:09:57
问题 Hoping I can get some help with this, PHP is not my strong point, still learning the ropes... So I have a php form that creates an RSS file, the RSS feed will be used on an internal intranet by helpdesk staff to keep up to date with current issues that arise in the network. The form is intended to be used as a front end for managing the feed and the last thing I need to do is be able to delete a specific item from the feed. I want to delete item's with specific GUID's, when the form creates

how to get the value from a callback function

放肆的年华 提交于 2019-12-04 06:44:17
问题 I am relatively new to javascript and I am facing some difficulty.I have two java script files as I have shown below. I am having trouble getting the value of the variable entry_title inside the getRss function and storing it inside the variables Rss1_title and Rss2_title . Creating a global variable and assigning it to entry_title will make things worse as I will not be able to know from which Rss url the title came from. Is there a easy way to get the value of the callback functions ?

.NET ServiceModel.Syndication - Changing Encoding on RSS Feed

假装没事ソ 提交于 2019-12-04 06:03:19
I'm trying to solve a bug where all of the RSS feeds I'm producing at http://captainobvio.us produce the following error in Internet Explorer (versions 8 and 9): Feed code error Switch from current encoding to specified encoding not supported. Line: 1 Character: 40 <?xml version="1.0" encoding="utf-16"?> The issue is that the actual encoding type sent via the HTTP header is different than what the document declares. Here is what my code looks like for writing the feed's output to HTML: public ContentResult Index() { var feed = _syndication.SyndicateIdeas(_repository.GetIdeas(0,15).Ideas); var

Trying to Parse Only the Images from an RSS Feed

狂风中的少年 提交于 2019-12-04 05:13:07
问题 First, I am a php newbie. I have looked at the question and solution here . For my needs however, the parsing does not go deep enough into the various articles. A small sampling of my rss feed reads like this: <channel> <atom:link href="http://mywebsite.com/rss" rel="self" type="application/rss+xml" /> <title>My Web Site</title> <description>My Feed</description> <link>http://mywebsite.com/</link> <image> <url>http://mywebsite.com/views/images/banner.jpg</url> <title>My Title</title> <link

What are the valid HTML tags in RSS Feeds?

这一生的挚爱 提交于 2019-12-04 03:44:40
I've looked around, and it doesn't seem like there's any standard of what HTML tags are 'allowed' in RSS - you could put anything in. But the readers I tested only allow certain things. In my initial testing, it seems like simple styling tags like <b> are fine. So is inline styles like <span style="color:red"> <img>'s seems to work. But <iframe>'s are ignored, as are <script> blocks. Onclick attributes don't work. <style> blocks work in some readers but not others Is there a general consensus, standard, or compatability site listing what is and isn't supported in what readers? I want to know

How to setup cron job on Amazon Linux AMI

a 夏天 提交于 2019-12-04 03:40:30
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 step for cron job? My first setup. Thanks, Alex You should first inspect the cron log file /var/log

Why is BeautifulSoup unable to correctly read/parse this RSS (XML) document?

吃可爱长大的小学妹 提交于 2019-12-04 03:15:29
YCombinator is nice enough to provide an RSS feed and a big RSS feed containing the top items on HackerNews . I am trying to write a python script to access the RSS feed document and then parse out certain pieces of information using BeautifulSoup. However, I am getting some strange behavior when BeautifulSoup tries to get the content of each of the items. Here are a few sample lines of the RSS feed: <rss version="2.0"> <channel> <title>Hacker News</title><link>http://news.ycombinator.com/</link><description>Links for the intellectually curious, ranked by readers.</description> <item> <title