开发者

What is the best way i can obtain a twitter List/Group XML feed?

开发者 https://www.devze.com 2023-03-15 03:16 出处:网络
I know you can use https://twitter.com/statuses/user_timeline/< user >.xml for a users status feed but i dont know how I can get statuses from a us开发者_运维知识库er\'s twitter list/group.

I know you can use https://twitter.com/statuses/user_timeline/< user >.xml for a users status feed but i dont know how I can get statuses from a us开发者_运维知识库er's twitter list/group. thanks


after spending a very long time on google trying to find an answer to my question, I landed this http://davidbcalhoun.com/2011/the-incredibly-painful-way-of-getting-an-rss-feed-of-a-twitter-list hopefully it will help others with a similar question


Well this is how I would do it using C#

    XDocument doc = XDocument.Load("https://twitter.com/statuses/user_timeline/< user >.xml");
    List<string> statusTexts = doc.Root.Elements("status")
                                    .Elements("text")
                                    .Select(t => t.Value)
                                    .ToList();
0

精彩评论

暂无评论...
验证码 换一张
取 消