How to get all the posts from rss feed rather than the latest posts?

 ̄綄美尐妖づ 提交于 2019-12-11 07:04:41

问题


Rss seems only have the latest n posts, I just wonder is there anyway to get all the posts including the history post. Thanks

Jeff Zhang


回答1:


This isn't generally possible since a RSS reader only shows what is currently in the feed. You can only pull as much as is published at that time. Finding the dataset which backs the RSS feed items and downloading directly from there is something else entirely though and is sometimes possible.




回答2:


using c# you can do it but it will return the Json not in Rss format. you have to do like

   string AccessToken="Your Access Token e.g KIMJSLIFJEILMFSLJFSDIIIIFLDFJSLFJLSFSLFJSLJF";
   var client= new facebookclient(AccessToken);
   dynamic allFeeds=client.Get("me/feed");//OR  "me/feeds


        foreach (var uniquefeed in (JsonArray)allFeeds["data"])
        {
            string feedids = (string)(((JsonObject)uniquefeed )["id"]);
            //Write more stuff here what you want.
        }


来源:https://stackoverflow.com/questions/5962017/how-to-get-all-the-posts-from-rss-feed-rather-than-the-latest-posts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!