v2.5.2
Giriş yap

Twitter veri çekme sorunu(api ile)

muratcelebi
680 defa görüntülendi

Merhaba, twitter'dan bir kullanıcının twitlerini çekiyorum, çektiğim veriler arasında BEĞENİ SAYISI, RETWEET SAYISI gibi birçok veri geliyor ancak ilgili twite ait yorum(reply) sayısı gelmiyor.

Twitter'ın resmi sitesindeki ilgili makale: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/timelines/api-reference/get-statuses-user_timeline
Bu makaleye uygun olarak PHP ile veri çekmeye çalışıyorum.

Çektiğim twit verisi:


[0] => Array
        (
            [created_at] => Wed Sep 08 16:14:33 +0000 2021
            [id] => 1435637690809077760
            [id_str] => 1435637690809077760
            [text] => Kültür Zirvesi kapsamında şehrimize gelen Hollanda heyeti Başkan Soyer ile bir araya geldi. Zirvede tüm kültürleri… https://t.co/Tgd8YcJmoA
            [truncated] => 1
            [entities] => Array
                (
                    [hashtags] => Array
                        (
                        )

                    [symbols] => Array
                        (
                        )

                    [user_mentions] => Array
                        (
                        )

                    [urls] => Array
                        (
                            [0] => Array
                                (
                                    [url] => https://t.co/Tgd8YcJmoA
                                    [expanded_url] => https://twitter.com/i/web/status/1435637690809077760
                                    [display_url] => twitter.com/i/web/status/1…
                                    [indices] => Array
                                        (
                                            [0] => 117
                                            [1] => 140
                                        )

                                )

                        )

                )

            [source] => <a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>
            [in_reply_to_status_id] => 
            [in_reply_to_status_id_str] => 
            [in_reply_to_user_id] => 
            [in_reply_to_user_id_str] => 
            [in_reply_to_screen_name] => 
            [user] => Array
                (
                    [id] => 703858279
                    [id_str] => 703858279
                    [name] => İzmir Büyükşehir Belediyesi
                    [screen_name] => izmirbld
                    [location] => 
                    [description] => İzmir Büyükşehir Belediyesi resmi Twitter hesabıdır.
                    [url] => https://t.co/SmLjFKdc3h
                    [entities] => Array
                        (
                            [url] => Array
                                (
                                    [urls] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [url] => https://t.co/SmLjFKdc3h
                                                    [expanded_url] => http://www.izmir.bel.tr
                                                    [display_url] => izmir.bel.tr
                                                    [indices] => Array
                                                        (
                                                            [0] => 0
                                                            [1] => 23
                                                        )

                                                )

                                        )

                                )

                            [description] => Array
                                (
                                    [urls] => Array
                                        (
                                        )

                                )

                        )

                    [protected] => 
                    [followers_count] => 420664
                    [friends_count] => 79
                    [listed_count] => 250
                    [created_at] => Wed Jul 18 21:53:15 +0000 2012
                    [favourites_count] => 741
                    [utc_offset] => 
                    [time_zone] => 
                    [geo_enabled] => 
                    [verified] => 1
                    [statuses_count] => 10074
                    [lang] => 
                    [contributors_enabled] => 
                    [is_translator] => 
                    [is_translation_enabled] => 
                    [profile_background_color] => EBEBEB
                    [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] => 1
                    [profile_image_url] => http://pbs.twimg.com/profile_images/1193809682156183552/YugytW4j_normal.jpg
                    [profile_image_url_https] => https://pbs.twimg.com/profile_images/1193809682156183552/YugytW4j_normal.jpg
                    [profile_banner_url] => https://pbs.twimg.com/profile_banners/703858279/1604220706
                    [profile_link_color] => 000000
                    [profile_sidebar_border_color] => FFFFFF
                    [profile_sidebar_fill_color] => DDEEF6
                    [profile_text_color] => 333333
                    [profile_use_background_image] => 1
                    [has_extended_profile] => 
                    [default_profile] => 
                    [default_profile_image] => 
                    [following] => 1
                    [follow_request_sent] => 
                    [notifications] => 
                    [translator_type] => regular
                    [withheld_in_countries] => Array
                        (
                        )

                )

            [geo] => 
            [coordinates] => 
            [place] => 
            [contributors] => 
            [is_quote_status] => 
            [retweet_count] => 4
            [favorite_count] => 45
            [favorited] => 
            [retweeted] => 
            [possibly_sensitive] => 
            [lang] => tr
        )

    
Cevap yaz
Cevaplar (2)
eminkurt
952 gün önce

https://stackoverflow.com/questions/47740474/twitter-api-get-user-timeline-reply-comment-count
Burada yorum sayısını doğrudan olarak çekemeyeceğini söylüyor. Bir çözüm yolu da sunmuş deneyebilirsin.

muratcelebi
952 gün önce

lütfen help please