使用 tweetsharp 提取特定用户的数据

发布于 2024-09-15 18:21:01 字数 76 浏览 1 评论 0原文

使用tweetsharp提取特定用户的数据:我想获取转发次数(RT或Retweet)和提及次数(@)。

你能帮我吗?谢谢。

Using tweetsharp to pull data for a specific user: I would like to get the numbers of retweet (RT or Retweet) and the numbers of mentioning (@).

Could you help me? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我不是你的备胎 2024-09-22 18:21:01

TweetSharp 的当前版本(2.0 版)具有直接映射到 Twitter API 的方法。

假设您拥有某个用户的 oAuth 令牌,您可以使用以下方法:

.ListRetweetsOfMyTweets(...) 
.ListTweetsMentioningMe(...)

如果您无权访问用户的个人资料,您仍然可以使用标准搜索查询语法搜索该用户。

.Search("to:JohnDoe" ... )
.Search("from:JohnDoe" ... )

两者都应该为您提供您正在寻找的详细信息。

The current version of TweetSharp, version 2.0, has methods that map directly to the Twitter API.

Assuming you have the oAuth tokens for a user you can use methods like

.ListRetweetsOfMyTweets(...) 
.ListTweetsMentioningMe(...)

If you don't have access to a user's profile, you can still do a search for that user using the standard search query syntax.

.Search("to:JohnDoe" ... )
.Search("from:JohnDoe" ... )

Both should get you the details you're looking for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文