FAQ Database Discussion Community


How can i limit the number of articles (retrieved from an RSS) shown in php per page ? (Eg 10 articles per page)

javascript,php,html,dom,rss
Here is the code : I retrieve data from an RSS and i show them in a php page. These data are items (Articles) which contains title, date, description ... Now i want to show just 10 articles per page. Please how can i do that. Thank you <?php $fichier...

Need to Evaluate strlen of an XML

php,xml,rss,strlen
Hopefully this is simple. In PHP I am trying to scrape some RSSfeeds. Sometimes, the RSS feed is not properly updated/populated, yet it is NOT an empty file. I have the following code: $xml = simplexml_load_file("feed-url-here"); if ($xml != "") { if (strlen($xml) > 600) { perform some actions here;...

Google calendar feed link does not respect the parameters

api,rss,google-calendar,feed
I try to use this link to show the upcoming events but there is not respect my params form link have anyone any idea how to fix this? It is showing the whole events. Even the past ones https://www.google.com/calendar/feeds/mariushincu0%40gmail.com/public/basic?singleEvents=true&orderBy=startTime&timeMin=2015-04-25T00:00:00Z...

Array JSON deserialize

c#,json,list,rss
I'm trying to get the data from a website RSS converting it to JSON. I got this JSON string: http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http%3A%2F%2Frss.tecmundo.com.br%2Ffeed I'm using lists to get the values but I got this error "Cannot create an instance of the abstract class or interface" and I don't know how to solve it....

Codeigniter fatal error using $this

php,codeigniter,rss
Using Codeigniter 2.2.1 I am attempting to parse an RSS feed using this example: http://hasokeric.github.io/codeigniter-rssparser/ I have downloaded the library and added to my libraries folder. I then added this code to my view: function get_ars() { // Load RSS Parser $this->load->library('rssparser'); // Get 6 items from arstechnica $rss =...

Prepending this PHP File

php,rss,prepend
I'm a little stuck attempting to prepend this document with PHP. Please see below for the code itself. <?php if(isset($_POST['inputTitle']) && isset($_POST['inputDate']) && isset($_POST['inputLink'])) { $data = "<item>" . "\r\n" . "<title>" . $_POST['inputTitle'] . "</title>" . "\r\n" . "<description>" . $_POST['inputDate'] . "</description>" . "\r\n" . "<link>" . $_POST['inputLink']...

Can an RSS guid be considered globally unique?

rss,guid
I need to store new items from multiple RSS feeds in a database. I would like to use the GUID tag of each item to determine, whether it already exists in the database. See the W3C specification: guid stands for globally unique identifier. It's a string that uniquely identifies the...

Rss reader with custom array adapter

android,android-studio,rss
I'm making an android app with a rss feed in android studio and so I'm trying to put the title and description from: http://feeds.bbci.co.uk/news/rss.xml, to two textviews using a custom adapter. The rss feed is in a tab. And each time I try to run my program I get an...

my query rss didn't work

xml,rss,feed
anyone can help me? my rss feed doesnt work, the error is like this An error occurred while trying to validate this feed. Possible causes: The address may be incorrect. Make sure the address is spelled correctly. Try loading the feed directly in your browser to make sure a feed...

How to handle received push notification from parse ? | RSS

objective-c,parse.com,push-notification,rss
Using Parse, my push notification working perfectly. my app is an RSS news feed, and from time to time I'm sending Push notification, my problem is that I don't know how to handle the push notification when the user receive it. I've got all my RSS sources listed in a...

Validator w3 RSS Invalid - RSS not showing the feed by using PHP [duplicate]

php,xml,rss
This question already has an answer here: How to generate XML file dynamically using PHP? 5 answers I'm new in creating RSS with PHP. I have searched some references and it seems that my feeds gets error or invalid RSS based on validator.w3.org. I also has read this link....

Feedburner doesn't push RSS updates to Facebook Page

facebook,rss,feedburner
I have publicized my Feedburner feed and added Twitter and Facebook accounts. 1 - I don't know how Google can verify Facebook page, and tried looking everywhere 2 - Yet, Feedburner successfully posts to Twitter How to troubleshoot this? How to make Feedburner successfully post latest feed to Facebook page?...

Show only headers in Octopress RSS

rss,jekyll,octopress
I have a blog based on Octopress. It generates an RSS-feed, but that feed contains whole pages (posts) with images included. How can I "shrink" it, so it would contain only headers of pages (posts)? Octopress: 2.0 Jekyll: 2.0.3...

How can I manage large input to my RSS endpoint?

javascript,angularjs,asp.net-web-api,rss
I have an Angular + ASP.Net WebAPI Application. I am posting a JSON query to an API and in return getting the RSS formatted feed. $scope.rss = function(query){ $http.post("api/url", query) .success(function(response){ //I have RSS feed (xml string) in response //But cannot publish it as RSS /*response = "<?xml version="1.0" encoding="UTF-8"...

Trouble reading RSS data in AS3

actionscript-3,flash,rss
I am trying to read a simple RSS feed in flash, but keep bumping into namespace issues. What's the proper way to get the content url from the following rss feed? <rss version="2.0" xmlns:rbinl="http://reedbusiness.nl/rss/2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <item> <media:content url="howtogetthis.jpg"/> <title>This can be read from AS3</title> </item> </channel> AS3 Code: //...

Copy Row if Sheet1 A contains part of Sheet2 C

rss,google-spreadsheet,google-docs,drive,advanced-search
So I'm trying to pull the data in a row from a separate sheet (sheet2!), if part of Col A has the the Date that is in sheet1! C1. Col A ex: "Build 251 at Fri Jun 12 03:03:49 2015" Col C1 ex: "Fri Jun 12" (Changes date every couple...

Unable to configure Symfony (3rd party) bundle

php,symfony2,rss
I am faily new to Symfony and I am trying to setup a third party bundle that reads RSS feeds and then insert them into database. The third party bundle I am trying to use is called rss-atom-bundle After reading the instructions I can get the RSS feeds however I...

HTML and CSS twitter/Facebook feed

html,css,facebook,api,rss
I've been asked by a client to make a feed like exactly like this on a website. I have the logos etc as it was profided in a photoshop document. Would someone care to help? IT will be going inside a <div class="col-lg-3"> The things I need answering then is,...

Synchronize 2 online RSS readers

automation,rss,rss-reader,digg,feedly
I need to connect Feedly and another online RSS/podcast reader, Dig Reader. I want to synchronize them. If I suscribe something in Feedly, I want the subscription to be automatically added in Dig Reader. I did the same using IFTTT with Diigo and Delicious, but I don't know how to...

Creating a razor dynamic html table in ASP.Net

c#,asp.net,asp.net-mvc,razor,rss
I'm trying to display RSS news items in a row three at a time. I can currently display each item one in each row at a time using the code: @foreach (var item in ViewBag.RSSFeed) { <tr> <td> @Html.Raw(item.Description) </td> </tr> } I tried to use two loop statements but...

Microsoft.XMLDOM - Facebook Page RSS - System error: -2147012866

xml,facebook,asp-classic,rss
I had successfully hooked up my Classic ASP site to read a Facebook page RSS feed and return details on the latest post. This had been working perfectly fine when set up, but I noticed the other day that it no longer worked. I've fiddled with it quite a bit,...

How to access the attribute of a element when using rss in php

php,xml,twitter-bootstrap,rss
I am using a RSS-feed to display some news. But the thing is that i use bootstrap and the RSS-feed send a image that i cant figure out how to access, so i can putt class="img-responsive" on it. Now the images dosent fits to the screen.. php code when i...

Fetch XML via HttpClient and populate a List<>

c#,xml,rss,dotnet-httpclient
I am trying to fetch XML data from an RSS feed using the C# HttpClient and fill a List<RssFeedItem> with the data. This code is from another StackOverflow post: using (var httpClient = new HttpClient()) { var request = new HttpRequestMessage(HttpMethod.Post, "http://domain.com"); request.Content = new StringContent(Serialize(obj), Encoding.UTF8, "text/xml"); var response...

How to str_replace Google News RSS for Facebook Share?

regex,rss,preg-match,simplexml,str-replace
Hi I'm using simpleXML to display a news.google.com feed. The displayed entries link to the original article in this way: http://news.google.com/news/url?sa=t&fd=R&ct2=us&usg=AFQjCNEcqhcp4AfUzgxc2l1gumydaxQ-KQ&clid=c3a7d30bb8a4878e06b80cf16b898331&cid=52778832126843&ei=keFLVfiHGvDVmQL5_4GgBg&url=http://WEBSITEWITHNEWS.COM/ARTICLEURLHERE I need the entries to link to this instead: http://WEBSITEWITHNEWS.COM/ARTICLEURLHERE The reason is that Facebook Sharer cannot interpret the following link:...

Android - RSS reader: URL forced to mobile address

android,rss
On the image you can see my origiginal URL for the RSS (http://www.fyens.dk/rss/sport) is changed to go to the mobile site (http://mobil.fyens.dk/modules/mobile). How can I avoid this? I can't read the RSS feed from the mobile site. try { URL url = new URL("http://www.fyens.dk/rss/sport"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); if...

List returns null

android,android-studio,rss
I'm making a an android studio app which has tabs and one of those tabs has a rss feed, to which I'm trying to to put in the title and description of posts from http://feeds.bbci.co.uk/news/rss.xml to a list view, but I get an exception: java.lang.NullPointerException: Attempt to invoke interface method...

Rss feed changes url to items

rss
I am implementing a rss feed reader like system and I am having issues with some feeds that change the urls of the items after a while. When I built the system I used the md5 of the url as an ID to have an easy and fast way to...

How to insert an element .. inside the channel element in a RSS feed using C#?

c#,asp.net,xml,rss
I'm looking to create an rss feed for a website using C#. What I'm trying to approach is, once I clicked a button ("Add Feed"), it suppose to create and a Node Element, like this: <item> <title> some title...here </title> <link> link to the article ...here </link> <description> article's description...

How to implement an rss feed to a rails application using feedjira

ruby-on-rails,rss,feedjira
I want to firstly apologize for asking a very similar question to ones that already exist. However, I couldn't quite find the thread and answers I was looking for. Everywhere I research about implementing an rss feed to a rails application it's in the context of doing the implementation for...

Change value while clicking a tag

javascript,jquery,cordova,rss
I'm tring to build a mobile app. Getting rss content from different web sites. But there are a lot of web sites, and I want to list only user wants to see. For example; <a href="#" class="website1">Web Site 1</a> <a href="#" class="website2">Web Site 2</a> <a href="#" class="website3">Web Site 3</a> if...

Error 400 'bad request' when trying to cURL RSS feed

php,http,curl,rss,feed
I'm trying to scrape the below feed (with permission) via PHP cURL: http://www.safc.com/Home/RSS Feeds/News%20Feed Loads fine in a browser, but gives me a 400 'bad request' with cURL. $ch = curl_init($uri); //http://www.safc.com/Home/RSS Feeds/News%20Feed curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_ENCODING => '', CURLOPT_TIMEOUT => CURL_CONNECT_TIMEOUT, CURLOPT_USERAGENT => CURL_USER_AGENT, CURLOPT_SSL_VERIFYPEER => false,...

Hide Shortcodes From Wordpress RSS Feed

wordpress,rss,feed,shortcode
I added Adsense to my content via shortcodes. But Adsense codes appears in RSS too. How can I hide shortcodes from RSS Feed and show only for in posts ? I am using sahifa wordpress theme....

How to make a database for user content [closed]

php,mysql,rss
I'd like to ask you, how would you make a database for custom user content. I've got a web page which shows news via RSS feeds from a few websites, but I would like to be able to store "user settings" of feeds for each user who has an account...

Equivalent to rss.itunes generator for Google Play

android,rss,google-play,itunes
I know that it's not a pure programming question, So I asked it on android.stackexchange.com, but unfortunately no one sees that. I want to get statistics about apps on Google Play (not my app) I noticed this API by Apple: https://rss.itunes.apple.com/ This API gives statistics about apple app store Is...

How can I grab all nodes from XML with PHP+mySQL?

php,mysql,xml,rss,eregi
I need to grab all nodes from XML. After I try use below PHP coding. It is work. But I can not grab <description> and image from xml. Here is XML from others website (UTF-8 Thai Language) http://www.dailynews.co.th/rss/rss.xml Here is my PHP code : $Rsssurl_SQL="SELECT * from rss_feed_url"; $Rsssurl_RESULT=mysql_db_query($dbname,$Rsssurl_SQL); while...

Bad characters in output from rss feed

c#,asp.net,rss
I am using the following method to connect to an rss feed. var url = "http://blogs.mysite.com/feed/"; var sourceXmlFeed = ""; using (var wc = new WebClient()) { wc.Headers.Add("user-agent", "Mozilla/5.0 (Windows; Windows NT 5.1; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4"); sourceXmlFeed = wc.DownloadString(url); } var xrs = new XmlReaderSettings(); xrs.CheckCharacters = false; var xtr...

Display Wordpress Content on another website

php,html,css,wordpress,rss
I have a wordpress site, it's been set up with some custom post types. I'd like to display one of these post types on another website. Another Wordpress website that is hosted by a different company and uses it's own database. Specially, I'd like to display the last 8 items...

Create RSS feed of a website that does not have RSS button

website,rss
Most websites I visit have RSS feed where you can subscribe to. I went to one website, http://www.metopera.org, and they do not have any options for creating an RSS feed. Specifically, I would like to pull from http://www.metopera.org/metopera/news/index.aspx?nav=top 1 - Is it possible to create RSS subscription for a website...

Unexpected token while parsing Facebook RSS

c#,facebook,winforms,rss,.net-4.5
I'm trying to parse the facebook RSS but none of them seems to work. Every method I've tried so far result in a different exception. I changed the format to format=atom10. I ended up with below code void loadRSS3() { string url = "https://www.facebook.com/feeds/notifications.php?id=XXXX&viewer=XXXX&key=XXXX&format=atom10"; var req = (HttpWebRequest)WebRequest.Create(url); req.Method =...

Fetch several rss feeds from other blogs in one page

wordpress,function,rss,fetch,autoblogged
I am trying to make a function which take an rss fedd URL and fetches the most recent 2 posts. I have tried to remake the snippet from here to a full function in funtions.php as following. I don't want to use a plugin for this since the plugins I...

Youtube Video feeds link not working

iphone,rss,youtube-api
I am using following link to get list of youtube video for given string in my iOS app. http://gdata.youtube.com/feeds/api/videos?max-results=10&alt=rss&q=Hello Previously it was working fine, but now its not giving me any response at all. Anyone please suggest me on this....

XAML Binding data of an XML attribute and displaying its value

c#,xaml,data-binding,rss,xmlserializer
I am making simple RSS reader for Windows Phone which reads an XML file using XML Serializer and displays the list of items. I have Rss.css file and amongst others I have item class (below fragment): public class Item { [XmlElement("title")] public string Title { get; set; } [XmlElement("link")] public...

Media content tag missing from rss feed generated by Rome 1.0

rss,media,rome
I am trying to add some media content to my Rome 1.0 generated RSS feed. But the feed that generates is without my media content tags. I've been looking all over the Internet for answers but no site has really been helpful this far. How do I get my media...

Exception trying create a RSS Reader?

android,android-fragments,android-asynctask,rss
I'm trying create a rss reader to my app, the problem is when I try display my Fragment doesn't works and throws an exception and doesn't works. I'm trying follow this sample: https://androidresearch.wordpress.com/2012/01/21/creating-a-simple-rss-application-in-android/ How could I do this ? RSS Reader Fragment public class RSSReaderFrag extends Fragment implements AdapterView.OnItemClickListener{ private...

Converting RSS to JSON adds strange characters

ajax,json,rss
I'm trying to get an JSON version off the CNN Entertainment RSS feed, but it appears the Google AJAX script is adding strange characters. I looked into URL encoding which I know is important, but I don't think I'm using any characters that need encoding. Plus, the feed converter has...

Opening and Ending Tag mismatch error while creating Rss

php,rss
I am new in php nd want to help in generating rss feed. i have a db with name "test123" having fields Id, Name, Address, Designation and Text. Here is my code for rss feed` <?php function connect() { return new PDO('mysql:host=localhost;dbname=test123', 'root', '', array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::MYSQL_ATTR_INIT_COMMAND => "SET...

How can I parse an RSS feed using something other than PHP?

javascript,json,rss
I want to parse the RSS feed found here: http://blog.everybodyedits.com/feed/ The problem is, I can't parse it using PHP (the host we use doesn't allow it). I have seen many others that use jQuery and AJAX, but they all show an entire list of blog posts. I would like to...

W3C validator says 'feed does not validate' 'url must be a full URL'… whats wrong with it?

url,rss,w3c,w3c-validation,rfc
Validating my feed, it has an enclosure with a URL of https://archive.org/download/NigelFarageAPersonalMessageToNorthernIrelandVoters./Nigel%20Farage,%20a%20personal%20message%20to%20Northern%20Ireland%20voters..mp3 I know it is a bit convoluted... but what is wrong with it? The stop in the directory name? the double dot in the file name? the comma? all of em? I have looked at the RFC on...

Fatal error: Call to a member function getElementsByTagName() WordPress 4.2.2 RSS Feed

php,xml,wordpress,rss,domdocument
I'm getting Fatal error: Call to a member function getElementsByTagName() now when I'm trying to pull in the RSS feed from my wordpress blog. Here's the code I'm using to get the RSS feed (which has worked up until recently): $xmlDoc = new DOMDocument(); @$xmlDoc->load('http://www.revolutionpersonaltraining.com.au/blog/feed/'); $x = $xmlDoc->getElementsByTagName('item'); for ($i=0;...

Feed title appearing twice in wordpress responsive theme cyberchimps

php,wordpress,rss,wordpress-theme-customize
I am using responsive mobile theme by cyberchimps in wordpress 4.1. When I am trying to read from a feed and display the post on my site, the title is being displayed twice. I tried changing feeds-rss.php and feeds-rss2.php from <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> to <title><?php bloginfo_rss('name'); ?></title> but the...

There is a error in parsing the rss from stackoverflow.com. using SimpleXML in PHP

php,xml,rss
I was trying to parse the rss of the tag PHP, from http://stackoverflow.com and tried to use something other than DOM Model, So I looked into SimpleXML. THis is my code: <?php error_reporting(-1); $xml = file_get_contents('http://stackoverflow.com/feeds/tag/php'); $loaded = simplexml_load_string($xml) or die("There is a problem"); $str1 = $loaded["entry"]["entry"][0]->title; echo $str1; ?>...

How to get custom data from wordpress RSS with SimplePie

php,wordpress,rss,simplepie
I have made some changes to a RSS feed in my Wordpress, and I'm using fetch_feed() to show data to another website. Imagine there are 2 websites called #Wordpress1 and #Wordpress2. This is the code i've added to #wordpress1's functions.php file add_action('rss2_item', 'dw_add_data_to_rss'); function dw_add_data_to_rss(){ global $post; if( $post->post_type ==...

XMLException when processing RSS

c#,xml,rss,argotic
I've been trying to process RSS feeds using Argotic for my newsreader application. For most of them it works fine, but on some feed (like this) it breaks with the following: Additional information: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing...

Rss is not working in Google Chrome usin PHP MYSQL

php,mysql,google-chrome,rss
I have a problem in my code I cant understand that problem. Problem is that my code is only run on Mozila Firefox. when i try to execute it on Google Chrome its begin to download my file and not executed. below is my code <?php include_once'connect.php'; header ('Content-Type: application/xml:...

Parse RSS with groovy

parsing,groovy,rss,xmlslurper
I am trying to parse RSS feeds with groovy. I just wanted to extract the title and description tags' value. I used following code snippet to achieve this: rss = new XmlSlurper().parse(url) rss.channel.item.each { titleList.add(it.title) descriptionList.add(it.description) } After this, I am accessing these values in my JSP page. What is...

RSS Reader create custom Adapter for ListView

java,android,xml,rss
I try to parse some xml files (RSS) and to create a custom ListView to display images, title and date. The only problem is that when I call RSS downloader class to download and parse xml file and create an adapter from it it give's me NullPointer Exception. I guess...

Is there a way to check update for particular npm package using rss/atom or other similar way?

node.js,rss,npm,atom
I found only this thread when an user ask similar question but without answer. ( https://github.com/npm/npm-registry-couchapp/issues/17 ) I know two sites that are repositories of NPM packages: https://www.npmjs.com http://libraries.io And I can't find a way to obtain an rss for single package in a way like it is done for...

Rails: How can I parse an RSS file with Feedjira

ruby-on-rails,rss,feedjira
I'm trying to parse an RSS file. It throws a 404 response when I do: Feedjira::Feed.fetch_and_parse url So I thought trying: Feedjira::Parser::RSS.parse url But that returns 0 entries This is exactly what I'm trying: <% Feedjira::Parser::RSS.parse("my url here").entries.each do |e| %> <%= "#{e.title}" %><br /> <% end %> The rss...

Open rss item in webview

android,rss,android-webview,rss-reader
I'm making android rss reader app that get rss ,parse then show items in listView Now with my code when item clicked it opens the default browser show rss I want to show that in another activity in webview So how can I do it? Here is my code public...

How to get first image from a tumlbr rss feed in PHP

php,xml,xpath,rss,tumblr
0Here is the relevant part of my rss feed: <channel> <description></description> <title>Untitled</title> <generator>Tumblr (3.0; @xxx)</generator> <link>http://xxx.tumblr.com/</link> <item> <title>Title</title> <description>&lt;figure&gt;&lt;img src="https://31.media.tumblr.com/c78c7t3abd23423549d3bb0f705/tumblr_inline_nkp9z234d0uj.jpg"/&gt;&lt;/figure&gt;</description>...

Retrieving RSS Feed from iTunes using cURL and PHP

php,ios,curl,rss,itunes
Been trying to get some PHP cURL code to work that gets the RSS feed from iTunes when you give it the podcast URL. Here is the code: $inputString = "curl -A 'iTunes/12.1.1.4 (Windows; U; Microsoft Windows 7 Home Premium Edition Service Pack 1 (Build 7601) DPI/96' -s 'https://itunes.apple.com/podcast/id530114975'"; $input...

How to Get SoundCloud RSS Download Stats via API?

api,rss,soundcloud
With SoundCloud's recent update showing RSS Downloads as a separate statistic, I am not able to find a way to get this stat via the API. Looking at the HTTP API Reference for Tracks, I can see options for: comment_count download_count playback_count favoritings_count Is there an option to get the...

Architecture/Design with Interfaces (Refactoring help)

c#,architecture,rss,solid-principles
I need your help about a design I made that I'm not happy with. The application is consuming RSS news (The articles's RSS, and the comments's RSS of each article). I made an interface called IDataService which provide the basic behavior of the data provider. public interface IDataService { Task<List<Item>>...

Feed Validation SSL Error

wordpress,rss,feed,cloudflare
When I tried to validate my feed, W3C Feed Validation returns this error Server returned [Errno 1] _ssl.c:504: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error My feed looks fine and shows a green padlock on chrome and firefox. My feed is behind CloudFlare's universal ssl. Feed Url: https://www.wphuman.com/feed/ How can I resolve...

Getting img url from RSS feed swift

ios,regex,swift,rss
I want to be able to retrieve the img url from a piece of string. Here's a sample of the img URL that I'm trying to retrieve: <p><img width="357" height="500" src="http://images.sgcafe.net/2015/05/OVA1-357x500.jpg" class="attachment- medium wp-post-image" alt="OVA1" /> My current implemention is crashing at textCheck which says its NIL. I looked over...

Why isn't XMLFeedSpider failing to iterate through the designated nodes?

python,xml,rss,scrapy,scrapy-spider
I'm trying to parse through PLoS's RSS feed to pick up new publications. The RSS feed is located here. Below is my spider: from scrapy.contrib.spiders import XMLFeedSpider class PLoSSpider(XMLFeedSpider): name = "plos" itertag = 'entry' allowed_domains = ["plosone.org"] start_urls = [ ('http://www.plosone.org/article/feed/search' '?unformattedQuery=*%3A*&sort=Date%2C+newest+first') ] def parse_node(self, response, node): pass This...

How to return RSS with REST service?

java,rest,rss,jersey,rome
I'm using ROME for RSS feed generating and Jersey as REST service. Here is my RSS feed generation. public SyndFeed generate() { SyndFeed feed = new SyndFeedImpl(); feed.setFeedType( "rss_2.0" ); feed.setTitle( "My Site" ); feed.setLink("http://example.com"); feed.setDescription("Test Site."); List<SyndEntry> entries = new ArrayList<SyndEntry>(); SyndEntry entry = null; SyndContent description = null;...

media:thumbnail w/ BeautifulSoup

python,rss,beautifulsoup
What is the correct way to parse the url attribute of media:thumbnail tags using BeautifulSoup? I have tried the following: doc = BeautifulSoup(urlopen('http://rss.cnn.com/rss/edition.rss'), 'xml') items = doc.findAll('item') for item in items: title = item.title.text link = item.link.text image = item.find('media:thumbnail')[0]['url'] However, I get the 'NoneType' object is not subscriptable error....

Install ASP.NET 5.0 version of System.ServiceModel.Syndication

c#,.net,asp.net-mvc,visual-studio,rss
I'm building a C# class in Visual Studio 2015 CTP 6, within an ASP.NET Web Application project (it's MVC). The class needs to read RSS feeds, and according to this StackOverflow post, the best way to do this is via the System.ServiceModel.Syndication namespace. I tried adding the DLL needed for...

Reading RSS Feed with MVC4

c#,asp.net-mvc,asp.net-mvc-4,rss
I'm trying to read in and process a wordpress blog onto my MVC4 website. I followed this example here but I am getting the following error: Read rss feeds with c# mvc4 Error: Compiler Error Message: CS1061: 'MyWebsites.Models.WordPressRSS' does not contain a definition for 'RSSFeed' and no extension method 'RSSFeed'...

Nasa Rss feed Sax parsing error

java,xml,rss,sax,saxparser
I am trying to write a java program for reading NASA Rss feed.The code works but when the code encounters 's symbol ,it doesnot read the entire line. For example-"A new NASA study finds the last remaining section of Antarctica&#039 ;s Larsen B Ice Shelf, which partially collapsed in 2002,...

JAVA get attributes value from xml using stax parser

java,xml,rss,stax
i'm working on a project that read RSS feed using java i use this tutorial they using Stax parser my question is how i can read attributes values ? http://www.vogella.com/tutorials/RSSFeed/article.html this is the RSSReader class package de.vogella.rss.read; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLInputFactory; import...

Getting value in rss feed using php

php,rss,domdocument
i want to get the value of a child in rss tag the code i'm using : $img = $item->getElementsByTagName('enclosure')->item(0)->firstChild->nodeValue; and the value i want to get is the url of the image, this is the RSS : <enclosure url="http://i.dailymail.co.uk/i/pix/2015/05/19/10/28D9A90800000578-0-image-m-14_1432029086109.jpg" type="image/jpeg" length="13451"/> what must i chang in my code to...

Writing a Dataset to xml including extra element

c#,xml,datatable,rss,dataset
Hi i am converting rss into xml using Datable. First i am reading the rss and converting into DataTable. Datatable is then converting into XML. try { DataTable tbl = new DataTable(); tbl.Columns.Add("id"); tbl.Columns.Add("product_name"); XmlDocument doc = new XmlDocument(); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(""); XmlNodeList itemNodes = xmlDoc.SelectNodes("//rss/channel/item"); foreach...

Delphi - Could not convert variant of type (Null) into type (OleStr)

delphi,rss,firemonkey
I have this probleme, but it seems to be a little bit more complicated : This is my code, particularly in the second line. const rssUrl: string = 'http://lcs.lmc.ac-grenoble.fr/Plugins/Cdt/scripts/flux_rss.php?div=TS2:40f60e9eed6f513e45a501953e82a6'; procedure TForm1.FormCreate(Sender: TObject); begin TabControl1.ActiveTab := TabItem1; WebBrowser1.Navigate; end; procedure TForm1.ListBox1ItemClick(const Sender: TCustomListBox; const Item: TListBoxItem); begin TabControl1.ActiveTab := TabItem2; WebBrowser1.Navigate(Item.TagString);...

Java RSS Feed Reader Android Studio

android,rss,feed
I can't find a guide for the RSS Feed reader for Java Android Studio. Have you some advices? Thanks...

return RSS attribute values via BeautifulSoup

python,attributes,rss,beautifulsoup
RSS: (in a file called myfeed.rss) <?xml version="1.0" encoding="utf-8" ?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:newznab="http://www.newznab.com/DTD/2010/feeds/attributes/"> <channel> <title>MyFeed</title> <link>http://website</link> <description>RSS Feed</description> <language>en-us</language> <item> <title>title goes here</title> <pubDate>Tue, 09 Jun 2015 15:15:23 -0600</pubDate>...

what is wrong with this SAX parsing and Xpath code?

java,xml,xpath,rss,sax
Working through Maven By Example, a book from quite a few years ago, but which is, I assume, retrieving the right versions from repositories, I'm just wondering what it going wrong with the unit testing in the first example. We have an xml file, start thereof: <?xml version="1.0" encoding="UTF-8" standalone="yes"...

Output Google Spreadsheet to XML/RSS/Atom using Google AppScript Content Service

xml,google-apps-script,rss,google-spreadsheet,google-docs
So I've searched this site and found nothing really useful so far to accomplish this. I am wanting to turn a spreadsheet into an RSS feed using google script content service. How do I declare column values (i.e. pubDate, Author, Content) so it will output correct RSS/Atom feed. Following their...

How to loop through Arrays created from XPath partial match to display the XML elements

php,xml,xpath,rss
I have been working on this for a while now and I am at a complete block, I am not sure if I am going about it the right way. What I have is an RSS feed displayed on my website. I have created a search box where I require...

How can stop rss parser after fixed numbers of items?

ios,objective-c,parsing,rss
I have one rss parser and i want stop him after a fixed number of items, like 5 or 10. I can put a condition for didn't add more objects in arrat, but parser still continues working and taking memory. Can someone help me? Thank you! - (void)parseXMLFileAtURL:(NSString *)URL {...

How can I make an RSS feed from Youtube search using Google App Script?

google-apps-script,rss,youtube-api,youtube-data-api,youtube-v3-api
Since Youtube shut down its RSS feeds for searches with it's newest version of the API, I've been trying to recreate them using Google App Script. Here's what I have so far (based off of this tutorial for converting a twitter widget to RSS): function getSearches(a){ try{ var rss,title,link; title="Youtube...

Parse RSS modification

xml,parsing,rss
Sorry to ask but need some help. I'm using the below script shown to parse an RSS feed of blog entries. In this example, I'm using "Mashable" feed as the feed source to demonstrate. Issue: The blog entry images and links appear correctly. But the problem is, I'd like to...

How to paginate with string provided in JSON result?

json,rss,feedly
I am using Feedly API to access feeds from a particular rss feed. Take a look at this link (1). As you see, it only returns newest 20 items but I think it provides sort of a link to paginate to the next result. There is 'continuation' key provided in...

Update data from RSS with vbscript

vbscript,rss
I'm writing a VBScript file (*.vbs) that should get data from this RSS and export them to text file. I searched the internet but found nothing about this. Does anyone know any sources to use for creating such function ? P.S. The RSS just shows the currency rates for a...

Text to Speech RSS Feed Help C# WP 8

c#,visual-studio,windows-phone-8,rss
I am making a simple application that gets RSS feed from a website then automatically reads the Headlines out loud (text to speech), so I followed this Tutorial to create the RSS reader https://msdn.microsoft.com/library/windows/apps/hh487167(v=vs.105).aspx Now I have no idea how to automatically text to speech the news in the list...

Issue Instantiating jQuery jCarousel

javascript,jquery,rss
I'm having an issue instantiating jCarousel with my new application using jQuery 1.11.2. I am not using jQuery UI. Here is the Website I think there is a problem with the call: jQuery('#mycarousel').jcarousel({ This Carousel was running without problem on previous application using jQuery 1.8.2 I tested the RSS Feed...