【发布时间】:2014-06-19 20:28:18
【问题描述】:
我使用了一些关键字并使用flume从twitter下载了推文。示例数据如下所示
{"filter_level":"medium","contributors":null,"text":"Messi, Ozil, CR7 & Suarez Bertengger di Lamborghini t.co/SKk8xnnjl7","geo":null,"retweeted": false,"in_reply_to_screen_name":null,"possibly_sensitive":false,"truncated":false,"lang":"in","entities":{"symbols":[],"urls":[{"expanded_url": "dlvr.it/5XH5Vk","indices":[56,78],"display_url":"dlvr.it/5XH5Vk","url":"t.co/SKk8xnnjl7"}],"hashtags":[] ,"user_mentions":[]},"in_reply_to_status_id_str":null,"id":461450307856130048,"source":"http://dlvr.it\" rel=\"nofollow\">dlvr.it ","in_reply_to_user_id_str":null,"favorited":false,"in_reply_to_status_id":null,"retweet_count":0,"created_at":"Wed Apr 30 10:21:41 +0000 2014","in_reply_to_user_id":null, "favorite_count":0,"id_str":"461450307856130048","place":null,"user":{"location":"订阅我们","default_profile":false,"profile_background_tile":true,"statuses_count": 158496,"lang":"en","profile_link_color":"006400","profile_banner_url":"pbs.twimg.com/profile_banners/251586988/1368528690","id":2515 86988,"following":null,"protected":false,"favourites_count":1,"profile_text_color":"333333","description":"最新新闻和软件。\r\n\r\nAkun ini dijual Rp150 .000","verified":false,"contributors_enabled":false,"profile_sidebar_border_color":"000000","name":"头条新闻","profile_background_color":"000000","created_at":"2012 年 2 月 13 日星期日:54:44 +0000 2011","is_translation_enabled":false,"default_profile_image":false,"followers_count":37879,"profile_image_url_https":"pbs.twimg.com/profile_images/449966329588482048/Rb4azNrv_normal.jpeg","geo_enabled" :false,"profile_background_image_url":"abs.twimg.com/images/themes/theme14/bg.gif","profile_background_image_url_https":"abs.twimg.com/images/themes/theme14/bg.gif","follow_request_sent" :null,"url":"google.com","utc_offset":25200,"time_zone":"Bangkok","notifications":null,"profile_use_background_image":true,"friends_count":10,"profile_sidebar_fill_color":" DDEEF6","screen_name":"7HotNews","id_str":"251586988","profile_image_url":"http://pbs.twimg.com/profile_images/449966329588482048/Rb4azNrv_normal.jpeg" ,"listed_count":19,"is_translator":false},"coordinates":null}
现在我必须找出推文的位置。我还遇到了一些网站,其中大多数答案都是上述 json 格式的“geo”字段给出了推文的位置。但它是空的我的大部分推文。 拜托,任何人都可以帮我解决这个问题……我只是转了两个星期…… 提前致谢, 红魔
【问题讨论】:
标签: java twitter location geo flume