【问题标题】:Specific search on twitter using tweetsharp使用 tweetsharp 在 Twitter 上进行特定搜索
【发布时间】:2012-11-30 14:31:34
【问题描述】:
TwitterService vice = new TwitterService();
           var tweeting = vice.Search("#Ghaza", 100);
           List<TwitterSearchStatus> resultList = new List<TwitterSearchStatus>(tweeting.Statuses);
           foreach (var twt in resultList)
           {
               Console.WriteLine(resultList);
           }

它给了我这样的输出

System.Collection.Generic.List '1[TweetSharp.TwitterSearchStatus]

即使我的代码运行没有错误,它也不会返回我的推文

【问题讨论】:

  • 看起来它返回了一个 TwitterSearchStatus 列表
  • 但为什么不显示推文
  • @AnumKhan,你调试应用的时候,推特是什么类型的?
  • 我想要 json 格式,但我得到的结果显示有问题
  • 推文的文本包含在 twt.Text 中。我认为你的循环体应该是 Console.WriteLine(twt.Text)

标签: c# twitter tweepy tweetsharp twitter-client


【解决方案1】:
Console.WriteLine(twt.Text);

在你的循环中使用它。它有效。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-12-26
    • 2013-07-24
    • 1970-01-01
    • 1970-01-01
    • 2017-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多