rss

Only show images from an RSS feed with PHP

徘徊边缘 提交于 2019-12-11 12:36:52
问题 I'm attempting to parse an rss feed to display images only. I am using a generic wordpress feed and would like to strip out everything that isn't an image. I've been playing around with simplepie and but haven't been able to find a solid way to display images only. I found this old simplepie forum post (http://simplepie.org/support/viewtopic.php?id=643) but was unable to get the code working. I suppose it may just be outdated by now but am unsure. I'm not tied to simplepie but do need to work

Android “Loaded time zone names for en in __ms.”

倾然丶 夕夏残阳落幕 提交于 2019-12-11 11:19:34
问题 The app I'm writing loads an RSS feed using the HorrorRSS library. The problem I'm facing is that looking at the logs I see oodles of this junk: 10-06 12:58:36.939: I/global(3159): Loaded time zone names for en in 624ms. 10-06 12:58:37.329: I/global(3159): Loaded time zone names for en in 368ms. 10-06 12:58:37.709: I/global(3159): Loaded time zone names for en in 370ms. 10-06 12:58:38.149: I/global(3159): Loaded time zone names for en in 403ms. 10-06 12:58:38.589: I/global(3159): Loaded time

How to extract the full content from a partial content rss

最后都变了- 提交于 2019-12-11 10:59:14
问题 I am working on a PHP project. The goal (in a simple lang) is to read an RSS feed, and get the title, full content, and media (video and/or images) from it, and post it in a wordpress blog. (The customer wants to use some sources that are open for sharing and use them for auto posting in his blog) I successfully could extract the title, content and images or videos and post them in wordpress. However, there are some problems: 1) I can only extract the media if they are included in the RSS. 2)

How do you properly use xmlns namespaces with custom extensions to .NET SyndicationFeeds?

烂漫一生 提交于 2019-12-11 10:54:43
问题 I am using the .NET SyndicationFeed class and have added some of my own extensions using SyndicationItem.ElementExtensions.Add() as well as setting SyndicationItem.Content to some Xml content. My problem is that my namespace shows up multiple times in the XML output. Ideally I would apply a xmlns attribute to the root node and use its alias throughout the document. I have seen examples that discuss using SyndicationFeed.AttributeExtensions as seen here. For example: feed.AttributeExtensions

How to Load Images from a RSS Feed using Google Feed API?

醉酒当歌 提交于 2019-12-11 10:46:34
问题 I'm not able to load the images using Google Feed API, I'm using the mediaGroup to load images. This is the javascript code I've written for fetching the feed <script type="text/javascript"> google.load("feeds", "1"); function initialize() { var feed = new google.feeds.Feed("http://techzei.com/feed"); feed.setNumEntries(14); feed.load(function (result) { if (!result.error) { result.feed.entries.forEach(function(entry) { $('#feed').append('<div class="card"><a href="' + entry.link + '">' +

How to invoke button from inside ListItem?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 10:44:23
问题 I have create a LinearLayout for a list item with the following XML code <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="10dip"> <TextView android:id="@+id/txtTitle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textStyle="normal|bold" android:textSize="16dip" android:padding="5dip" android:text="Title" android

Can an RSS file be made portable (with relative links or scripting)?

那年仲夏 提交于 2019-12-11 09:42:39
问题 Is it possible to make a static RSS feed file that can be moved from server to server without change? It appears that relative links are not fully supported in RSS, but the latest info I've found is quite old; something javascripty would work in HTML, but not in RSS XML. Background: I'm working with an HTML publishing project that generates static RSS feed files for some lists of resources. To update, you'd re-publish the static file to the same location. One export option is to save to your

Android RSS parsing - Google News RSS feeds are not “most recent” as opposed to search results. How to solve?

坚强是说给别人听的谎言 提交于 2019-12-11 09:26:04
问题 1) Check this news output link: www.google.com/search?q=example&num=10&hl=en&gl=us&authuser=0&tbm=nws&source=lnt&sbd:1&sa=X&ved=0CBUQpwVqFQoTCJi2r5XYl8gCFYeNDQodbDQF1g&biw=1242&bih=599&dpr=1.1 The parameters used are tbs=sbd:1, &tbm=nws&source=lnt - This SHOULD give you a time-sorted list of news. The most recent at the top. (Sorted by date as the parameter - sbd:1). However, when you click it, it goes back to sorted by relevance for some reason. Please check the meaning of URL tags here:

Adding recent Wordpress post, with featured image and excerpts to HTML site

你离开我真会死。 提交于 2019-12-11 08:54:40
问题 I have researched this question on several forums and have found the most relevant answer here: Add "Recent Posts" from a wordpress blog to a html static page. What I am looking for is an expansion upon this answer that will allow me to include a featured image and post_excerpt. I have searched Google and this forum, to no avail. Any help that you can provide would be greatly appreciated. My goal is to include an RSS-type feed on my HTML site drawn from my blog, which resides in a sub

Should I use proxies with simplexml_load_file and file_get_contents?

ⅰ亾dé卋堺 提交于 2019-12-11 08:53:14
问题 I'm using simplexml_load_file to get RSS from several websites for a while. Sometimes I get errors from some of these websites and for about 5 days I'm having errors from 2 specific websites. Here are the errors from simplexml_load_file : PHP Warning: simplexml_load_file(http://example.com/feed): failed to open stream: Connection timed out PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://example.com/feed" Here are the errors from file_get_contents : PHP