How to get TWEETS by Python | Twitter API 2022

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 269

  • @aispectrum
    @aispectrum  3 года назад +23

    Thank you guys for your support 🙂. I made new videos about getting tweets from users or tweets by keywords/hashtags, and streaming tweets in real-time. Links of the videos are in the description.

    • @nitinluthra1751
      @nitinluthra1751 2 года назад +1

      Hi! You write code that is elegant and systematic. In your 2 videos, the file with keys and token do not use the bearer token which I think is creating problems for me. I am having trouble getting tweets older than 7 days via academic access-authenticating my account and then searching a sizable number of tweets using hashtag and a specific date. It will be very helpful for researchers to have another video on this topic!

    • @datareactor4143
      @datareactor4143 2 года назад

      can you kindly help me if we want to download tweets for a specific subject? i tried making changes to the public_tweets = api.home_timeline() line but was not successful after some experiments.

    • @Ilham-ct4mk
      @Ilham-ct4mk 2 года назад

      Hi thanks for the video, and I'm getting this error like below
      raise KeyError(key)
      KeyError: 'twitter'
      Can you have any comments on this

    • @khushiverma3467
      @khushiverma3467 Год назад

      ​@@Ilham-ct4mk your issue solved ??

  • @hnn1335
    @hnn1335 Год назад +6

    Elevated access is now basic access and I have to pay 100$ a month to access tweets.... I was so excited to follow along this project

  • @Vitotheking100
    @Vitotheking100 2 года назад +4

    Great video. This is the only resource I found online saying I need elevated access. Thank you

  • @violapastorino5845
    @violapastorino5845 3 года назад +4

    Thank you so much for this video! You are such a good teacher the Netherlands is lucky to have you!

    • @aispectrum
      @aispectrum  3 года назад +1

      Thanks a lot for the nice words! 😊

  • @pepex90
    @pepex90 2 года назад +10

    Hi !! I have this exception: "453 - You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal." But in the Developer Portal i have all proyects in Elevated Access 🙁

    • @riyagupta1841
      @riyagupta1841 2 года назад +1

      Same here
      Could you please tell me how can I resolve this problem?

    • @Zer0-0
      @Zer0-0 2 года назад +1

      It's a pain in the ass, you have to set up stuff

    • @enescerrahoglu
      @enescerrahoglu Год назад +1

      were you able to solve this problem?

  • @nehat786
    @nehat786 3 года назад +7

    It would be great if we see real-time tweets of any particular account. There is not much information on that as of now. Would be helpful for us. Thanks. Appreciate your effort. God bless you!

    • @aispectrum
      @aispectrum  3 года назад +2

      I appreciate your nice words 😊. I'll indeed look into this topic in next videos.

  • @irshadshaik2994
    @irshadshaik2994 2 года назад +1

    Does it take a long time to get the twitter developer account? Or will it be created as soon as you agree with the terms and conditions

  • @Joy381GT
    @Joy381GT 2 года назад +1

    hello is there any callback url or website url tht i can fill, because it required right now

  • @ayorinde5782
    @ayorinde5782 2 года назад +1

    how do i run the code in vs code terminal window

  • @ppsweetanny
    @ppsweetanny 2 года назад +1

    Hi after write the code for print(api_key) in my MacBook I found an error can you please help me on that

  • @laarx8911
    @laarx8911 3 года назад +1

    Thank you so much!! This tutorial is the easiest one to follow!

  • @seyiojo4041
    @seyiojo4041 2 года назад +1

    I cant seem to get past the creation of the developers' account.

  • @Restlesscrocodile
    @Restlesscrocodile 2 года назад +1

    Thank you my lovely, this was really helpful. I was wondering if there was a way to change the date/time format? At the moment, it comes out as something like [2022-04-29 14:58:39+00:00] - which cannot be recognised as a date in excel.

  • @KulturanCov
    @KulturanCov 2 года назад +17

    you can also use pandas json_normalize() function, which transforms a json dic into a nice pandas DataFrame.
    tweets = pd.json_normalize(response["data"])
    tweets
    With tweepy you would need to change the return_type to requests.Response.
    client = tweepy.Client(
    bearer_token=BEARER_TOKEN,
    return_type = requests.Response # Needed to use json methods, which makes life much easier
    )

  • @kchen9914
    @kchen9914 3 года назад +1

    Many thanks for your video. It's extremely useful. I am a PhD student, and I am trying to extract tweets according to keywords. I'll target your video. Thank you very much!!!

    • @aispectrum
      @aispectrum  3 года назад

      Thanks for the nice comment. Happy to hear that video could be helpful to a fellow PhD student!

    • @kchen9914
      @kchen9914 3 года назад +1

      @@aispectrum Thank you for your kindly reply. I've got an academic research API.
      I just tried to follow your code step by step, but I am stuck at video 11:30.
      I got the return "453 - You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal".
      I am struggling with it. I am not very familiar with coding and Twitter API, but my research requires this. So I am trying my best to do it.
      If possible, could you please give me a clue? Thank you very much. God bless you.

    • @kchen9914
      @kchen9914 3 года назад

      @@aispectrum thank you, my friend, my issue is gone, I solve it.😆

  • @xtzewka4107
    @xtzewka4107 3 года назад +2

    Hi @AI sectrum, could you say what should I put in fields CallbackURL & Website URL on twitter dev site at registration process (when they ask me to choose between different type of OAuth(I'm choosing 1.0a)? Without filling those fields I can't finish the registarion and I can't give my app write & read permission. I have no clue what I should put in there

    • @aispectrum
      @aispectrum  3 года назад +1

      I see that they now changed a bit the UI. As you figured it out, you should now change the app premission in the User authentication settings section. Just choose OAuth 1.0a, give to your app the read/write permission, and for the Callback and Website URLs, you can simply give the link to your github repository.

    • @xtzewka4107
      @xtzewka4107 3 года назад

      Cool, thank you

    • @aviezerlawee2883
      @aviezerlawee2883 2 года назад

      @@aispectrum So, i did this and im still getting a traceback bad request 400 215 tweepy error bad authentification data. Imma check the keys one more time. Really excellent video

  • @camiloninguem495
    @camiloninguem495 2 года назад

    Thank U so much, I had problems with the separators, so much tweets .text has comas or tabs or | , when I import this to excel (for example) is imposible. How I can converter to numpy object?

  • @woolfy02
    @woolfy02 3 года назад +2

    So, this tutorial uses 'OAuth 1.0a' correct? I don't see any option too 'edit app options' on 2.0. And OfCourse I can't save those settings until I figure out the 'Callback URI / Redirect URL' and 'Website URL' which Is not in the tutorial here. Twitter changes things around way too much

    • @aispectrum
      @aispectrum  3 года назад +3

      Yes. I saw that too. You can try to enable OAuth1 on the website and use the link to your GitHub repository for the callback URL.

  • @courtneytan7418
    @courtneytan7418 2 года назад

    This was so well done! Bravo!

  • @HelloNewMe1996
    @HelloNewMe1996 2 года назад +1

    hello.. i try to use the code but i have an error . tweepy.errors.Forbidden: 403 Forbidden
    453 - You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal.
    please help me

  • @danrock9285
    @danrock9285 2 года назад +1

    Hi, friend. Thanks for the video!
    I need to store hundreds of tweets safely; and use them later (in original format) in my thesis, throug an easy way. Does Tweepy do that, or just returns text and metadata? Is there some sort of "recoversion" to original format?

    • @aispectrum
      @aispectrum  2 года назад +1

      I don't think you can use the API for this. API only returns the data in json format. If you want to do save them in original format like twitter website, you may have to write a script with HTML + CSS + JS to get what you want.

    • @danrock9285
      @danrock9285 2 года назад

      @@aispectrum Thanks!

  • @CelskySiBunnyHop
    @CelskySiBunnyHop 2 года назад

    hi sir, i would like to learn this content for my thesis and i want to ask something. How it works with emoticon because i saw the output print emoticon? thankyou

  • @bluespider6537
    @bluespider6537 2 года назад +1

    Hi thank you for creating this short guide! really helpful to get started with twitter API

    • @aispectrum
      @aispectrum  2 года назад

      Thanks for the feedback! Glad it was helpful! 🙂

    • @illushop2.o382
      @illushop2.o382 2 года назад

      Hello Can you help me?? Actually I stuck in public_tweets. There are showing errors. So please

  • @dianyinghunjian
    @dianyinghunjian 2 года назад +1

    Is there a way to no auth??

  • @BabakRoumiani
    @BabakRoumiani Год назад

    چاکر بچون خرموعه، دمت گرم

  • @jaymorad7095
    @jaymorad7095 2 года назад +2

    Thanks so much for this it was extremely helpful. Also going to watch your video relating to searching using keywords. However, can you recommend how to get tweet images that users had posted?

  • @sazid_mahmud
    @sazid_mahmud 2 года назад

    Thanks for the video. I was searching for something like this.

  • @miracleuche586
    @miracleuche586 Год назад

    Thank you so much for the helpful and succint video. Please, how can I run these codes on Jupyter notebook? Being unfamiliar with VS Code text editor, I find it challenging to replicate these codes on my notebook. I need help.

  • @april147
    @april147 2 года назад

    It saved my life! Thank you so much!

  • @jinjjasugoi1213
    @jinjjasugoi1213 2 года назад

    when i type "pip install tweepy" in terminal it gives me this... ip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
    spelling of the name, or if a path was included, verify that the path is correct and try again. why is that?? HELP PLEASEE!

  • @egiwahyu4377
    @egiwahyu4377 2 года назад

    Sir i thought i miss the section or don't understand completely. But i want to ask you how to connect your tweet to the code? I didn't get it. Coz i didn't see any of your twitter account name in the code...

  • @imaduddinfarih4835
    @imaduddinfarih4835 2 года назад +1

    hello AI spectrum..
    its a great tutorial.. easy to understand
    thank you, and really appreciated.
    does it work in essential access or we have to upgrade to elevated access ?

    • @aispectrum
      @aispectrum  2 года назад

      Well I don't think you can run this code with essential access. Essential access only allows you to connect to API v2 (this is equivalent to using tweepy.Client class). But I use API v1.1 here (since I use tweepy.API class).

    • @imaduddinfarih4835
      @imaduddinfarih4835 2 года назад

      @@aispectrum thank you

  • @mbegaliful
    @mbegaliful 2 года назад

    This is probably a stupid question (and slightly out of topic).However, I try anyway. I don't get this section:
    config = configparser.ConfigParser()
    config.read('config.ini')
    api_key = config['twitter']['api_key']
    How can you use the variable "config" in config['twitter']['api_key'] to have access to the file( config.ini) when the file is not read yet? In my VERY RUDIMENTAL knowledge of Python I would expect something like:
    config = configparser.ConfigParser()
    x = config.read('config.ini')
    api_key = x['twitter']['api_key']
    Am I completely off mark? Thanks!

  • @bobvance9519
    @bobvance9519 2 года назад

    I wonder how one might save other things like searches and hashtags or other pages on twitter.

  • @rohitray5947
    @rohitray5947 Год назад

    Can you develop a hashtag recommendation system for twitter in python using twitter datasets ?

  • @aishwaryaahuja6456
    @aishwaryaahuja6456 Год назад

    it is not showing apply for elevated when I am trying. It is jumping to the payment website

  • @onanaonana325
    @onanaonana325 2 года назад

    My list of tweets, dataframe are empty. i don't understand why

  • @spinout77
    @spinout77 2 года назад

    Thanks for the instructions and the video! I am still stuck in the set up process: when giving the app the read and write permission, I also have to specify a Callback URI / Redirect URL and a Website URL. This information is required. What do I have to enter there? I have neither a Callback URI nor a website to refer to.

  • @mouse6653
    @mouse6653 2 года назад

    Hello, I got a problem with sign up a account Twitter Development. They need I show the purpose to sign up. Can you help me? Many Thanks

  • @Essoulefou
    @Essoulefou 2 года назад +1

    Hello ! thank for the video. I'm a beginner, I have an error at the first print and I dont know why.
    Traceback (most recent call last):
    File "c:\Users\****\Documents\VisualCode\try\twitter_api.py", line 9, in
    api_key = config['twitter']['api_key']
    File "C:\Users\****\AppData\Local\Programs\Python\Python310\lib\configparser.py", line 964, in __getitem__
    raise KeyError(key)
    KeyError: 'twitter'
    Do you have an idea? :/

    • @peterm1697
      @peterm1697 2 года назад

      Same boat. Have you found the solution?

  • @hindal-humaidi5567
    @hindal-humaidi5567 2 года назад

    When I save data to CSV with pandas and open it in excel, the data does not order and it is a mess situation 🙂

  • @Provloging789
    @Provloging789 Год назад

    It will throw error for tweepy.. May I know what is the latest version

  • @AzadehEsfandyari
    @AzadehEsfandyari Год назад

    Thank you, I believe collecting Twitter data with a free developer account is no longer possible. Is this correct?

  • @nidhi-12
    @nidhi-12 2 года назад

    hey @aispectrum
    not able to solve this error
    You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, youÆll need to apply for Elevated access via the Developer Portal.
    please help me solve this

  • @marianomeses403
    @marianomeses403 2 года назад

    you're a genius. un saludo carnal, excelente video.

  • @faqapour6166
    @faqapour6166 2 года назад

    what is the name of your platform that coding in it?

  • @CuriouslyWatching
    @CuriouslyWatching 2 года назад

    I love your tutorials
    I learnt a lot when making a sentiment analysis project for my school

    • @aispectrum
      @aispectrum  2 года назад

      Glad you like them!

    • @illushop2.o382
      @illushop2.o382 2 года назад

      Hello Can you help me?? Actually I stuck in public_tweets. There are showing errors. So please

  • @subratasaha8820
    @subratasaha8820 3 года назад +1

    awesome explanations. i have completed all three videos and successfully extracted tweets. however, if I need only 'English' language tweets, where to modify in the code? can you help me on this?
    # please upload more videos.

    • @aispectrum
      @aispectrum  3 года назад +2

      Thanks! For filtering based on language, you can pass to api.search_tweets the parameter lang='en'. For streaming, pass to stream_tweets.filter the parameter languages=['en'].

    • @subratasaha8820
      @subratasaha8820 3 года назад +1

      Thanks@@aispectrum

  • @philipung5335
    @philipung5335 3 года назад +2

    Thanks for this video, it was very useful
    Just note, I noticed in this video and when doing a similar project, the tweets are not printed into full text and so tweets that are long in length are replaced by ...
    And so is there any way to get around this, as this is holding me back from getting a large dataset.
    Thanks in advance

    • @aispectrum
      @aispectrum  3 года назад +3

      You’re right. The Twitter API by default only returns 140 characters. To avoid this, put tweet_mode=‘extended’ in the api.home_timeline method. Also use tweet.full_text, instead of tweet.text, to read the tweet.

    • @philipung5335
      @philipung5335 3 года назад +1

      This is my code, and the tweet_mode parameter doesn't work in my function.
      Also the tweet.full_text doesn't work, so this is a barrier, so Im not sure how to get around this.
      cursor = tweepy.Cursor(api.search_full_archive, label="Tweets", query="Bitcoin", fromDate="202001010000", toDate="202012312359").items(number_of_tweets)
      for i in cursor:
      tweets.append(i.full_text)
      likes.append(i.favorite_count)
      time.append(i.created_at)
      retweets.append(i.retweet_count)

    • @aispectrum
      @aispectrum  3 года назад +1

      @@philipung5335 I do not have an Academic Research access to run the search_full_archive method. What you can do is to check the json data that you get from the API. First see if the "truncated" element is True, then inspect the data and look for "extended_tweet" element, this has the full text.

    • @philipung5335
      @philipung5335 3 года назад

      Thanks for your reply. I will give that a try, but Im a newbie to coding, so Im not sure what you mean by 'check the json data'.
      I only have elevated access which includes premium v1.1

    • @---kt5xz
      @---kt5xz 3 года назад

      @@philipung5335 did you got full text

  • @skyterror321
    @skyterror321 2 года назад

    can you get geolocation off of the tweets

  • @comradeff7241
    @comradeff7241 2 года назад +1

    Is this only worked for elevated access accounts?

  • @BeWorded
    @BeWorded 2 года назад

    You are quite a teacher! Thank you so much!

  • @Nikhil123477
    @Nikhil123477 2 года назад

    After making developer account how much time it takes to have access?

  • @roberttyler2861
    @roberttyler2861 2 года назад +1

    This is a great tutorial - thank you. How would you add to the list? I want to store more than say the 300 but say 10,000 or so?

    • @aispectrum
      @aispectrum  2 года назад

      According to the official API document, you can get up to 800 tweets from home timeline. For this, try using tweepy.Cursor and passing to it api.home_timeline

  • @hugocastillo8125
    @hugocastillo8125 Год назад

    The elevated access is still free as the basic access?

  • @nihalshukla0913
    @nihalshukla0913 2 года назад +1

    Jay Shree Baba Mahakaal Ji Har Har Mahadev Ji
    Jay Shree Aai Shree Kulswamini Maa Tuljabhawani Maiyaa ji Jay Shree Maa Harsaddhi Bhawani Maiyaa ji❤

  • @Lumiere10x
    @Lumiere10x 2 года назад

    Thanks so much for this it was extremely helpful. Also going to watch your video relating to searching using keywords. However, can you recommend how to get tweets as much as say 5000-10,000? I currently have the elevated access. IF its not possible can you suggest methods we can try out? Looking forward to your reply.. Thanks

  • @meleseayichlie5645
    @meleseayichlie5645 2 года назад

    thank you guys for your valuable support, but i have a question how to download hate speech image in twitter

  • @starmarch5465
    @starmarch5465 2 года назад

    how if we want to get the user who mention user tweet ? do we use tweet.user. too ?

  • @hakanbayramkaraaytu
    @hakanbayramkaraaytu Год назад

    I need to have tweets from RTErdogan. where should I mention this account name into this code?

  • @ONRISEAI
    @ONRISEAI 2 года назад

    Great video, 👍
    Can we have more than 1 developer app?
    I already have an autoposter so it's not letting me add a different dev app only Production & Staging. 😕

  • @flavianitzlader8981
    @flavianitzlader8981 2 года назад +1

    Hi, thanks a lot for this, I'm a beginner at Python and was struggling how to get started before seeing this. I have done all the steps as you do, but for some reason when I want to import tweepy it doesn't show even though I previously installed it using pip3. Configparser works fine though. I have not yet heard back from twitter regarding my elevated access, could that be the reason?

    • @RobCloseMusic
      @RobCloseMusic 2 года назад +1

      What is the point of all this? Does this method strengthen the tweet to reach a larger audience? trying to understand how to better my sent tweets

  • @yhk6187
    @yhk6187 3 года назад +1

    thank you so much for this. by the way, how can i define the time length? for example, I would like to search tweets containing certain keyword or hashtag posted between 2022-01-01 to 2022-02-01. If this is not possible. Could you give me any suggestions about this?

    • @aispectrum
      @aispectrum  3 года назад +2

      For getting tweets by searching keywords/hashtags, you can check out this video: ruclips.net/video/FmbEhKSpR7M/видео.html
      For the time period, just pass the until parameter to the search_tweets method, something like until='2022-02-01'. Just have on mind that the api only reteruns tweets that are 7-days old.

  • @mallekumari626
    @mallekumari626 2 года назад +1

    Hi thanks for the video, and I'm getting this error like below
    raise KeyError(key)
    KeyError: 'twitter'
    Can you have any comments on this

  • @furryanimalfriends
    @furryanimalfriends 2 года назад

    how to tweet or reply tweet using python?

  • @gamesclash2480
    @gamesclash2480 2 года назад

    sir how to undetectable as a bot with twitter api?

  • @rakesh4581
    @rakesh4581 2 года назад

    Sir if anyone twit and I want her twit in 1-2 second , so it is possible with api or not? For example Elon Musk make twit and I want newly twit in 1 second through api. Please tell me

  • @RyanPu-js9gl
    @RyanPu-js9gl 2 года назад +2

    Great video! Thanks a lot for sharing this! I have two questions though: 1. Is it possible to use your method to collect, say 10k tweets, at one time? I tried but only returned about 1k tweets. 2. What's the difference between tw.Cursor() and tw.Paginator()?

    • @aispectrum
      @aispectrum  2 года назад +1

      Unfortunately the API restricts the tweets that you can get with essential access. If you want to get more tweets, you need to elevate the access, for example to academia access. For the second question, Cursor() is for pagination of API v1.1 methods (this is when we write tweepy.API for instantiation), but Paginator() is for API v2 (that is tweepy.Client).

    • @geraldwinata8346
      @geraldwinata8346 2 года назад +4

      @@aispectrum Sir, I have elevated access but it only collect 100 tweets. How can I collect 1k tweets for a single csv?

    • @latanff3511
      @latanff3511 2 года назад

      @@geraldwinata8346 you got It?

  • @ahmedutuber
    @ahmedutuber 3 года назад

    thank you to much, we learning us with you new skill tweetpy API 🙏🙏🙏🤝

  • @thinkdo9470
    @thinkdo9470 Год назад

    good but could you guide me these coding working right now?

  • @SaranyuSudharsana
    @SaranyuSudharsana 2 года назад

    Hi Al Spectrum, I'm getting key error twitter . I dont why and I couldn't find the reason could help me please it is for my research

  • @mohammadumaradil2224
    @mohammadumaradil2224 2 года назад

    Hello Sir. I have with me the bearer token number. Is it similar to access token and access token secret? Please clarify about the same?

    • @aispectrum
      @aispectrum  2 года назад

      It's actually different. bearer_token is for OAuth 2. You can pass this to the Client class of tweepy instead of API. But note that the methods of Client are different than API.

  • @MetaMaiden-me2yh
    @MetaMaiden-me2yh Год назад

    Hi, can i check if tweepy still works?

  •  2 года назад

    Thanks for great video and coding. Can you find how many times tweet and share your tweet ? (meaning count)

    •  2 года назад

      Yok hayır

  • @Ankansworld
    @Ankansworld 2 года назад

    Even after having the correct API keys and Elevated access, I am getting
    TweepError: [{'code': 89, 'message': 'Invalid or expired token.'}]
    Can someone please help? I want to get tweets based on a specific hashtag.

  • @moonsha5851
    @moonsha5851 2 года назад

    Hello, I want to learn this course. I applied twitter developer account three times and all of them has been rejected. Could you help me apply a twitter developer account? Thank you most warmly.

  • @minipatel6132
    @minipatel6132 2 года назад

    Hi great video! If I wanted to search for a certain word from my home timeline how would I exactly do it. I know I'll need a api.search_tweets and a for loop but how would I go about doing it?

    • @aispectrum
      @aispectrum  2 года назад

      If I understood right, you want to search for some keywords. If that's the case, I have made a video for searching tweets. You might want to check it out.

  • @giannisbk4336
    @giannisbk4336 3 года назад

    Thank you for the video. This is very helpful!!!!

  • @cecer3795
    @cecer3795 2 года назад

    Sooooo helpful!!! Thank you so much for your video :-)

    • @aispectrum
      @aispectrum  2 года назад

      Glad to hear that this was helpful 🙂

  • @cherrywithers6200
    @cherrywithers6200 Год назад

    Thank you so much! Does anyone know what the lead time is for their approval responses?

    • @soumilyade1057
      @soumilyade1057 Год назад

      The free tier comes with 1500 tweets only.

    • @shurooqaldaja912
      @shurooqaldaja912 Год назад

      Did you know what is the time for approval response??

  • @bobvance9519
    @bobvance9519 2 года назад

    Excellent tutorial!

  • @neroonose4585
    @neroonose4585 2 года назад

    Best ever. Thank you so much

  • @asyakur_
    @asyakur_ 2 года назад

    I need the tweet date range but in tweepy there is no since and until function anymore, do you guys have a solution?

    • @aispectrum
      @aispectrum  2 года назад

      Maybe you can try the since_id and max_id parameters. This is not of course a perfect solution, but could be helpful if you have the tweet ids for the beginning and end dates.

    • @asyakur_
      @asyakur_ 2 года назад

      @@aispectrum ok i'll try. thank you very much

  • @saudaltamimi5442
    @saudaltamimi5442 3 года назад

    Can you please explain the 0auth 1.0 set up process

    • @aispectrum
      @aispectrum  3 года назад

      In the settings tab of your project on twitter developer website, click on Edit for User authentication settings. Then enable OAuth 1.0a, set app permission to Read and write or any other that you like, then for the Callback URL and website URL, you can copy the link to your GitHub repository.

  • @ayorinde5782
    @ayorinde5782 2 года назад

    am getting this error what can i do: tweepy. errors.Forbidden: 403 Forbidden, and they also want me to get APIV2, can i use the token generated for v1

  • @shaniadecruz7047
    @shaniadecruz7047 3 года назад

    Hello there on my code I get a 403 error message when I try to store the acquired tweets into a variable and display it, what are the steps to resolve this

    • @aispectrum
      @aispectrum  3 года назад

      It's not that easy to say what is causing the problem for you without seeing the error and your code. But this could be due to problem with your API keys or your access level. Make sure you have elevated access as I explain in the video, and make sure your API keys are correct. You can also check the twitter website for understanding your error: developer.twitter.com/en/support/twitter-api/error-troubleshooting

  • @Alwalou
    @Alwalou 2 года назад

    Can you do explanation for Ruby On Rails app ?

  • @secondaccountadlinaluthfia6099
    @secondaccountadlinaluthfia6099 2 года назад

    i love the video sound quality

  • @Khushboo_Khandelwal-28
    @Khushboo_Khandelwal-28 3 года назад

    It was really helpful for me, Thank you!

    • @illushop2.o382
      @illushop2.o382 2 года назад

      Hello Can you help me?? Actually I stuck in public_tweets. There are showing errors. So please

  • @Juan-Hdez
    @Juan-Hdez 2 года назад

    Very useful. Thank you!

  • @facundolubo
    @facundolubo 2 года назад

    How can i create a url callback and an own website? It requires me as mandatory to get access to the api

    • @aispectrum
      @aispectrum  2 года назад

      For the Callback URL and website URL, you can copy the link to your GitHub repository.

  • @AndresVeraF
    @AndresVeraF 2 года назад

    Thanks for this video & subscribed !

  • @randagha3283
    @randagha3283 3 года назад

    Thank you a lot!!
    could you please upload a video on how to retrieve tweets with specific words?

    • @aispectrum
      @aispectrum  3 года назад +1

      I have plan to publish a video for this after holidays.

    • @juanharu
      @juanharu 3 года назад

      @@aispectrum looking forward to this subject too! thanks for this tutorial very informative!

    • @banonenbob7641
      @banonenbob7641 3 года назад

      @@aispectrum Specific words or users would be great. For example return all the tweets mentioning @Facebook for example.

  • @kaandoesstuff3402
    @kaandoesstuff3402 2 года назад

    I can't make an app after the essential access. It wants me to have the elevated access to make an app. Got rejected 3 times. In one of my applications I copied exactly what someone else wrote. They got accepted but I got rejected. Very strange. Am I missing something? Thank you.

    • @aispectrum
      @aispectrum  2 года назад

      Unfortunately sometimes twitter staff are strict for accepting the application. You may try to explain that you only want to use the api for personal or educational use, and you won’t share the twitter data. If still they didn’t accept the application, you can get data by scraping twitter (you may check my last video for this)

  • @maaknunalam8579
    @maaknunalam8579 3 года назад +2

    Very helpful video, thank you. Could you kindly show how to possibly find tweets with specific keyword matching; also how to run the script in a server to keep extracting data continuously. Thank you !!!

    • @aispectrum
      @aispectrum  3 года назад +1

      I’m happy that it was helpful to you. You can check my new video for getting tweets by keywords: ruclips.net/video/FmbEhKSpR7M/видео.html

  • @vinshuthakur1892
    @vinshuthakur1892 2 года назад

    Can we get tweets according to certain dates

    • @aispectrum
      @aispectrum  2 года назад

      If for more than 30-days old, not with elevated access. You can try using snscapre instead, check out my video "Get unlimited tweets"

  • @shitabtanzim2037
    @shitabtanzim2037 3 года назад

    Thank You. It was very helpful.

  • @tailuu785
    @tailuu785 2 года назад

    Hi AI Spectrum, so I tried your tutorial and it said my twitter account only has essential access to twitter v2 endpoint only. It says I need an elevated access to be able to access this endpoint. How do I change the endpoints to collect data or is there something else I can do to resolve the issue without updating to the elevated access?

    • @aispectrum
      @aispectrum  2 года назад

      If you only have access to v2, you can tweepy.Client instead of tweepy.API. tweepy.Client has different functions that can be helpful.
      Also, In my last video I show how to get tweet data without using the API. Maybe that can help.

    • @BoostRoo
      @BoostRoo 2 года назад

      How did you end up fixing this? Same error here.

  • @matteusguedes6717
    @matteusguedes6717 2 года назад

    Does the bot post to its own profile or post to my personal profile?

    • @aispectrum
      @aispectrum  2 года назад

      It uses the API keys to post on twitter, so if you are logged in to your twitter account while generating the keys, it will post on your profile as well.

  • @VonEphesos
    @VonEphesos 3 года назад

    Hi. When I click the submit button, it gets loading for a second and then the website stays in the developer agreement and I don't receive any notification. I've tried with two different accounts and I have no idea what's wrong.
    Thanks for your help.
    UPDATE: When I move into the third step, the cell 'USE CASE' looks empty, which makes no sense (I've put "making a bot" in my case). I don't know if it has something to do with the problem.

    • @aispectrum
      @aispectrum  3 года назад +1

      For your twitter account, you need to verify your email and phone number. If this didn't help, try with a different browser as well.
      I hope this helps.