rss

RSS Feed getting cut off

扶醉桌前 提交于 2019-12-25 03:11:39
问题 I'm trying to pull in an RSS feed into my PHP code. When I view the feed with Google Reader, I see several hundred items in the feed. However, when I pull it into my code, I'm only seeing 10. What is the reason for the difference and how can I pull in the full feed? 回答1: Since you don't show your code, it is impossible to say with certainty what is wrong. However, you tagged your question as a SimplePie question and SimplePie defaults to 10 items in some places. So, that's likely what is

Problem getting author from a wordpress RSS feed using SimpleXmlElement

风流意气都作罢 提交于 2019-12-25 02:49:07
问题 Hay, i'm trying to parse an RSS feed from a wordpress blog. So far everything is working as expected, here's my code <?php $feedUrl = "FEED URL"; $rawFeed = file_get_contents($feedUrl); $xml = new SimpleXmlElement($rawFeed); $channel = $xml->channel; $items = $channel->item; foreach($items as $item){ echo "<a href='".$item->link."'>".$item->title."</a>"; echo $item->description; echo $item->pubDate; } ?> However, i seem to be having issues getting the Author of the post. The data has got to

RSS Feeds and image extraction indepth

删除回忆录丶 提交于 2019-12-25 02:25:44
问题 I have spent time trying to solve this problem and this is as far as ive got. basically im trying to pull images from rss feeds. i use magpie to process the feeds as shown below.. this snippet is within a class function getImagesUrl($str) { $a = array(); $pos = 0; $topos; $init = 1; while($init) { $pos = strpos($str, "img", $pos); if($pos != FALSE) { $topos = strpos($str, ">", $pos); $imagetag = substr($str, $pos, ($topos - $pos)); $url = $this->getImageUrl($imagetag); $pos = $topos; array

xml data to dynamic text AS3 flash

萝らか妹 提交于 2019-12-25 02:02:27
问题 Can't figure it out. Basically I have this code fetching data from: http://www.cbbh.ba/kursna_bs.xml I can't move the data to a single line and <br /> is showing. My code is: var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); xmlLoader.addEventListener(Event.COMPLETE, LoadXML); xmlLoader.load(new URLRequest("http://www.cbbh.ba/kursna_bs.xml")); /* This loads the XML */ function LoadXML(e:Event):void { xmlData = new XML(e.target.data); parseData(xmlData); } /* This gets

XML RSS Feed Parse PHP

对着背影说爱祢 提交于 2019-12-25 00:35:47
问题 With an XML feed like so: <w:current temperature="22.2" dewPoint="12.9" humidity="56" windSpeed="5.6" windGusts="9.3" windDirection="ESE" pressure="1017.8" rain="0.0" /> and <w:forecast day="Thursday" description="Mostly Sunny. Warm." min="17" max="29" icon="2" iconUri="http://www.weather.com.au/images/icons/2.gif" iconAlt="Mostly Sunny" /> How do I parse it in PHP using the dom? $doc = new DOMDocument(); $doc->load('http://rss.weather.com.au/sa/adelaide'); $arrFeeds = array(); foreach ($doc-

How to join RSS feeds into one? (from php)

廉价感情. 提交于 2019-12-25 00:35:26
问题 How to join RSS feeds into one? (from php) what libs can help us with it? 回答1: You'll want to use SimpleXML Either that, or you can use something like Yahoo! Pipes to merge them for you can create a merged RSS feed for you. http://pipes.yahoo.com/pipes/ if you use pipes, be sure to filter by date, so you can get a feed with all the posts in chronological order. I've used it for a few things and it works great! 来源: https://stackoverflow.com/questions/3266996/how-to-join-rss-feeds-into-one-from

Is there any way to find if the given URLs is an RSS feed or atom using Java?

 ̄綄美尐妖づ 提交于 2019-12-24 23:01:37
问题 I am writing an RSS parser. Is there any way to find if the given URL is RSS or atom using Java? 回答1: You could use ROME (I suggest that first) for parsing RSS and Atom Feeds. Alternatively, you'll have to use a SAX parser or create a DOM tree and do the following: For RSS: In RSS, you will have to check that there's a rss element, and it's child must contain a channel element. There can be 0 or more item in RSS (I might be wrong). Example: <?xml version="1.0" encoding="UTF-8" ?> <rss version

How to get posts' content as HTML from a wordpress blog remotely

孤街醉人 提交于 2019-12-24 22:48:17
问题 I have self-hosted word-press Blog, and I am making a static home-page for my website based on jQuery. So, I wanted to display some content from my blog , in my home page ( in widgets ) , as a news section For example , I may fetch latest 5 posts titles & contents OR a specific page content ( via passing page id ) OR a specific post ( via passing post id ) So does Wordpress include any PHP file , that shows the posts contents as plain text, or HTML ?? I thought about fetching the Blog's RSS ,

FLV video not playing in Cooliris embed wall

时光怂恿深爱的人放手 提交于 2019-12-24 19:48:40
问题 I have a PHP file that generates a Media RSS file for the embedded wall. It reads images and video from our Amazon S3 bucket and signs the URLs before creating the RSS feed. When the wall loads, images display perfectly. Where there should be video there is only an empty black square, when the video is clicked - still only an empty square. However when I click on 'Start Slideshow' the video plays ok. When the video finishes it will load another image/video and this displays fine. I assume

commandline / cron curl Facebook RSS feed

若如初见. 提交于 2019-12-24 19:20:08
问题 I'm trying to setup a cron job which regularly poles my Facebook notification RSS feed and then fires off the latest change to my iPhone as push message using Prowl. I've already managed an identical task with a quote-of-the-day RSS feed, however my Facebook RSS feed always 302 redirects me to a "incompatible web browser." http://www.facebook.com/common/browser.php $ curl -v http://www.facebook.com/feeds/notifications.php?.... * About to connect() to www.facebook.com port 80 (#0) * Trying 69