TweetSearcher.
Runs a search for Twitter™ entries that contain the given query.访问Twitter搜索API是限速。在给定时间段中的过度搜索将导致搜索请求被拒绝。搜索API的确切速率限制信息可以在搜索API文档页面上找到:http://dev.twitter.com/docs/api/1.1/get/search/tweets
输出端口
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
在成功完成搜索后,变压器将为搜索结果中的每个推文输出新功能。每个输出功能都包含多个属性:
_tweet_id.:搜索结果的标识号。
_tweet_user:创建搜索结果的Twitter用户的名称。
_tweet_text.:搜索结果的文本。
_tweet_created_at: The date and time of the status update. This will be formatted in the standard FME date/time format: YYYYMMDDHHMMSS
_tweet_search_result.:搜索结果的JSON文本。这可以通过进一步检查jsonfragmenterandjsonextractor变形金刚。
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
If the search could not be completed, the feature will be output through theError输出端口,并将具有以下新属性:
_twitter_search_result.: If a response was received from the Twitter server, it will be stored in this attribute.
_twitter_error.:如果Twitter响应包含错误消息,则它将存储在此属性中。
参数
Search Parameters
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
键入搜索查询或选择包含查询的属性的名称。
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
选择要搜索的推文类型。选择是最近的那受欢迎的and混合。The value of this parameter may affect the number of search results that are returned.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
指定返回的搜索结果数量的上限,因此从变压器输出的最大功能数。
身份验证参数
笔记: For access outside of your network using a proxy server, use the Network tools in FME Options. From the Workbench menu, selectTools > FME Options > Network。有关更多信息,请参阅FME工作台帮助中的“网络”。
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
需要有效的Twitter用户名和密码才能访问Twitter搜索API。
地理码参数
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
如果此参数设置为Yes,变压器将限制其对地理典范推文的搜索。这些是用Lat / Long位置数据标记的推文。特征几何形状的重心将被用作搜索区域的中心点。
笔记that Geocoded Tweets may also include non-geocoded tweets if a user has set their location in Twitter settings, and that location falls within the search parameters (but does not have proper lat/long coordinates).
在这些情况下,TweetSearcher将添加其他属性:_tweet_geo。要排除这些结果,可以附上一个Tester变压器滤除非GeoCoded推文。将测试设置为_tweet_geo = "null"。
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
在搜索地理编码推文时,这些参数控制搜索区域的半径。单位可以设置为公里orMiles那and only tweets within the search radius from the search center point will be returned.
相关变压器
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, see变压器参数菜单选项。
Transformer Categories
搜索FME知识中心
搜索有关此变压器的样本和信息FME知识中心。
标签Keywords: TwitterSearcher