Tweeter API:如何编写查询以在用户帐户中进行搜索?

问题描述 投票:0回答:1

我需要使用Tweeter API搜索用户帐户。 The best API is in this link

Api示例如下:

https://api.twitter.com/1.1/users/search.json?q=soccer

其中q是查询。在示例中,它选择在其[[个人资料的名称中带有单词“ soccer”的用户。

我需要以这种方式编写查询

    它搜索所有用户(不管他们的名字,所以我不应该是q?]
  1. 帐户已验证(属性为verified
  2. 语言为
  3. 西班牙语
(属性status.langfollowers_count大于10,000(属性followers_count
  • 我已经尝试了以下请求

    https://api.twitter.com/1.1/users/search.json?q=fake&verified=true&followers_count>10000&status.lang=de

    但是,它不起作用

    点:

  • 当您请求一个帐户时,响应如下。因此,我想查询应该基于以下内容编写:

    [ { "id": 149450476, "id_str": "149450476", "name": "Nathan Fake", "screen_name": "nathanfake", "location": "UK", "description": "Official Nathan Fake Twitter.\nLIVE/DJ BOOKINGS:\nWorld excl. Americas: Mia Perelmuter - [email protected]\nAmericas: Andres Montes - [email protected]", "url": "Some url", "entities": { "url": { "urls": [ { "url": "Some url", "expanded_url": "http://nathanfake.com", "display_url": "nathanfake.com", "indices": [ 0, 23 ] } ] }, "description": { "urls": [] } }, "protected": false, "followers_count": 19819, "friends_count": 641, "listed_count": 354, "created_at": "Sat May 29 09:27:07 +0000 2010", "favourites_count": 3619, "utc_offset": null, "time_zone": null, "geo_enabled": true, "verified": true, "statuses_count": 5006, "lang": null, "status": { "created_at": "Tue May 19 09:09:41 +0000 2020", "id": 1262671759951695874, "id_str": "1262671759951695874", "text": "@DasGiftBerlin they're a delicacy in galicia and portugal.. I wasn't that into it though", "truncated": false, "entities": { "hashtags": [], "symbols": [], "user_mentions": [ { "screen_name": "DasGiftBerlin", "name": "DasGift", "id": 514663060, "id_str": "514663060", "indices": [ 0, 14 ] } ], "urls": [] }, "source": "<a href=\"http://twitter.com/download/android\" rel=\"nofollow\">Twitter for Android</a>", "in_reply_to_status_id": 1262664168857092096, "in_reply_to_status_id_str": "1262664168857092096", "in_reply_to_user_id": 514663060, "in_reply_to_user_id_str": "514663060", "in_reply_to_screen_name": "DasGiftBerlin", "geo": null, "coordinates": null, "place": null, "contributors": null, "is_quote_status": false, "retweet_count": 0, "favorite_count": 0, "favorited": false, "retweeted": false, "lang": "en" }, "contributors_enabled": false, "is_translator": false, "is_translation_enabled": false, "profile_background_color": "C0DEED", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_tile": true, "profile_image_url": "http://pbs.twimg.com/profile_images/1239999310181302276/qE-m2d2n_normal.jpg", "profile_image_url_https": "https://pbs.twimg.com/profile_images/1239999310181302276/qE-m2d2n_normal.jpg", "profile_banner_url": "https://pbs.twimg.com/profile_banners/149450476/1584473432", "profile_link_color": "4A913C", "profile_sidebar_border_color": "FFFFFF", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "has_extended_profile": false, "default_profile": false, "default_profile_image": false, "following": false, "follow_request_sent": false, "notifications": false, "translator_type": "none" } ]

    api tweets
    1个回答
    0
    投票
    从Twitter API返回的这些tweet对象中,您可以选择follower_count大于10000的用户对象。此定制处理将由您以某种编程语言来完成。 Twitter API不提供执行此类复杂查询的现成方法。
    © www.soinside.com 2019 - 2024. All rights reserved.