检索推特数据 [英] retrieve twitter data

查看:92
本文介绍了检索推特数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一个使用twitter数据来查找流感影响区位置的应用程序。需要检索包含具有地理位置的流感,流感等关键字的公共推文。

如果有人可以使用Asp.net C#帮助从twitter API检索推文。

I am trying to develop an application that uses twitter data to find the location of influenza affected area. The public tweets containing keyword like 'flu','influenza',etc with Geo-location are needed to be retrieved.
If someone can help to retrieve tweets from twitter API using Asp.net C#.

推荐答案

您是否看过Twitter API :



https://dev.twitter.com/rest / public / search [ ^ ]



我个人会使用客户端的默认rest API。但是,如果你想使用托管的C#代码,互联网上有一些很好的开放式库。



看一下这个例如



https://github.com/danielcrenna/tweetsharp [ ^ ]
Did you have a look at the Twitter API:

https://dev.twitter.com/rest/public/search[^]

I would personally use the default rest API from the client side. However, if you want to use the managed C# code, there are some good open libraries available on internet.

Take a look at this one for e.g.

https://github.com/danielcrenna/tweetsharp[^]


因为您使用的是ASP.NET ,为什么不使用ASP.NET的twitter帮助器的默认/内置函数?



这个 [ ^ ]页面几乎为使用twitter帮助程序的用户解释了大部分概念。



例如,您可以使用此代码搜索内容,并在您拥有的网页上显示相关推文。



Since you're using ASP.NET, why not use the default/built-in function of ASP.NET's twitter helper?

This[^] page has almost most of the concepts explained for users using the twitter helper.

For example you can search for content using this code and show the relevant tweets on the web page you're having.

// flu, and widget ID (I guess)
@Twitter.Search("#flu", "370310477957435392")





由于我们不确定第二个参数是什么意思,你可以省略它,ASP.NET团队说,





Since we're not sure what the second parameter is meant for, you can omit it, ASP.NET team says,

Quote:

并非所有参数都是必需的。可选参数用于自定义按钮或小部件的显示方式。

Not all of the parameters shown below are required. The optional parameters are used to customize how the button or widget is displayed.





在我附上的页面上阅读更多内容。



Read more on the page I have attached.


这篇关于检索推特数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆