feed

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

Post a reply on a comment in Facebook using cURL PHP / Graph API

空扰寡人 提交于 2019-12-04 03:46:52
问题 I know how to post a feed on the friend's wall. eg: $url = 'https://graph.facebook.com/' . $fbId . '/feed'; $attachment = array( 'access_token' => $accessToken, 'message' => $msg, 'name' => $name, 'link' => $link, 'description' => $desc, 'picture' => $logo, ); // set the target url $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT

OAuthException (#368) The action attempted has been deemed abusive or is otherwise disallowed

时光总嘲笑我的痴心妄想 提交于 2019-12-04 02:24:19
I'm trying to post a feed on my wall or on the wall on some of my friends using Graph API. I gave all permissions that this application needs, allow them when i make the request from my page, I'm having a valid access token but even though this exception occurs and no feed is posted. My post request looks pretty good, the permissions are given. What do I need to do to show on facebook app that I'm not an abusive person. The last think I did was to dig in my application Auth Dialog to set all permission I need there, and to write why do I need these permissions. I would be very grateful if you

New Twitter API: using it for a custom twitter feed

拟墨画扇 提交于 2019-12-03 21:49:50
humans. I had a custom Twitter feed widget that was working fine until the API update. The code was like this: <ul id="twitter_update_list"><li>Twitter feed loading</li></ul> <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="https://api.twitter.com/1.1/statuses/user_timeline/username.json?callback=twitterCallback2&count=4"></script> Now that they have updated to API 1.1, this code doesn't work. So, my question is, does anyone now what I need to change to get this to work? Or do I just need to start using their feed

Looking for alternative to Google Reader sync for RSS app

允我心安 提交于 2019-12-03 16:03:29
I'm in the early stages of designing an RSS app, and I'd like to include syncing to an online RSS feed service as a feature. Most such apps make use of Google Reader's feed/syncing features, but Google is now moving sync out of its Reader service, and also its API remains undocumented. Are there any alternatives to Google Reader that offer online syncing of feeds with a desktop client, and which have a documented API? LonelyBob A couple suggestions, the original web RSS Reader BlogLines is still around, though now under new management since MerchantCircle purchased the service late last year.

How To Tell Web Browsers About Atom Feeds

寵の児 提交于 2019-12-03 10:07:38
My website has an Atom feed and I want to make it easier to subscribe to it. I see that many sites such as StackOverflow have the Atom icon in the location bar in Firefox 3. I haven't, however, been able to work out how. I assume some HTML is needed - but what tags specify the the browser that a page has a feed? While the code provided in (all!) the other answers is absolutely correct, I would recommend against giving your feed a title of "RSS" if the format used is actually Atom. RSS, of course, refers to an entirely separate format for feeds and syndication and there's enough confusion among

Letting user specify recipients within Feed Dialog

落花浮王杯 提交于 2019-12-03 09:03:11
Currently, our app posts to users' friends' walls via Graph API. However, Facebook is deprecating this functionality so we are migrating to the Feed Dialog per Facebook's recommendations (see the February 6, 2013 section at https://developers.facebook.com/roadmap/ ). Now, we know we can specify the recipient as part of the Javascript SDK call (note FB.init() is called elsewhere earlier on the page): <p><a onclick="launchFeedDialog(); return false">Testing the Feed Dialog</a></p> <script> function launchFeedDialog() { // calling the API ... var obj = { method: 'feed', to: 'RECIPIENT NAME', //

Automatically Extracting feed links (atom, rss,etc) from webpages [closed]

≯℡__Kan透↙ 提交于 2019-12-03 03:50:37
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. I have a huge list of URLs and my task is to feed them to a python script which should spit out the feed urls if there are any. Is there an API library or code out there that can help? I second waffle paradox in recommending Beautiful Soup for parsing the HTML and then getting the <link rel="alternate"> tags, where the feeds are referenced. The code I usually use: from BeautifulSoup import BeautifulSoup as parser def

Trying to Parse Only the Images from an RSS Feed

若如初见. 提交于 2019-12-02 04:38:29
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>http://mywebsite.com/</link> <description>Visit My Site</description> </image> <item> <title>Article One<

Post a reply on a comment in Facebook using cURL PHP / Graph API

≯℡__Kan透↙ 提交于 2019-12-01 20:11:56
I know how to post a feed on the friend's wall. eg: $url = 'https://graph.facebook.com/' . $fbId . '/feed'; $attachment = array( 'access_token' => $accessToken, 'message' => $msg, 'name' => $name, 'link' => $link, 'description' => $desc, 'picture' => $logo, ); // set the target url $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,