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.
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!
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.
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!
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 🙁
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 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.
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.
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 )
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
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.
@@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
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?
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?
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
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?
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.
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
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
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
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!
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.
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
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.
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)
@@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.
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
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 ?
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).
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 !!!
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...
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.
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'].
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?
For getting tweets by searching keywords/hashtags, you can check out this video: th-cam.com/video/FmbEhKSpR7M/w-d-xo.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.
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?
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.
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()?
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).
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
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? :/
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!
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. 😕
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?
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.
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.
2 ปีที่แล้ว
Thanks for great video and coding. Can you find how many times tweet and share your tweet ? (meaning count)
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
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
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
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.
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.
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.
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!
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.
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
@@Ilham-ct4mk your issue solved ??
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
Great video. This is the only resource I found online saying I need elevated access. Thank you
Thank you so much for this video! You are such a good teacher the Netherlands is lucky to have you!
Thanks a lot for the nice words! 😊
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!
I appreciate your nice words 😊. I'll indeed look into this topic in next videos.
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 🙁
Same here
Could you please tell me how can I resolve this problem?
It's a pain in the ass, you have to set up stuff
were you able to solve this problem?
Thank you so much!! This tutorial is the easiest one to follow!
چاکر بچون خرموعه، دمت گرم
It saved my life! Thank you so much!
Thanks for the video. I was searching for something like this.
you're a genius. un saludo carnal, excelente video.
This was so well done! Bravo!
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!!!
Thanks for the nice comment. Happy to hear that video could be helpful to a fellow PhD student!
@@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.
@@aispectrum thank you, my friend, my issue is gone, I solve it.😆
Hi thank you for creating this short guide! really helpful to get started with twitter API
Thanks for the feedback! Glad it was helpful! 🙂
Hello Can you help me?? Actually I stuck in public_tweets. There are showing errors. So please
hello is there any callback url or website url tht i can fill, because it required right now
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
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.
Hi after write the code for print(api_key) in my MacBook I found an error can you please help me on that
You are quite a teacher! Thank you so much!
I love your tutorials
I learnt a lot when making a sentiment analysis project for my school
Glad you like them!
Hello Can you help me?? Actually I stuck in public_tweets. There are showing errors. So please
how do i run the code in vs code terminal window
Excellent tutorial!
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
)
Best ever. Thank you so much
Thank you for the video. This is very helpful!!!!
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
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.
Cool, thank you
@@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
Sooooo helpful!!! Thank you so much for your video :-)
Glad to hear that this was helpful 🙂
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?
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?
thank you to much, we learning us with you new skill tweetpy API 🙏🙏🙏🤝
I cant seem to get past the creation of the developers' account.
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
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.
Thank You. It was very helpful.
Thanks for this video & subscribed !
Thanks 🙂
It was really helpful for me, Thank you!
Hello Can you help me?? Actually I stuck in public_tweets. There are showing errors. So please
i love the video sound quality
Very useful. Thank you!
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?
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.
@@aispectrum Thanks!
clear and easy to understand.
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❤
Great video, thank !!
Is there a way to no auth??
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
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
good stuff, very helpful
Great video, thank you very much!
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?
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
Thank you for the video.I am a beginner in the subject and so far, your content is so interesting and useful.
I'm happy to hear that the video was helpful 🙂
@@aispectrum Hello Can you help me?? Actually I stuck in public_tweets. There are showing errors. So please
nice content, was helpful
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!
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.
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
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.
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)
@@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.
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
@@philipung5335 did you got full text
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 ?
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).
@@aispectrum thank you
it is not showing apply for elevated when I am trying. It is jumping to the payment website
Awesome! Thanks!
Thank ypu sooooo much!!! this is greattttttttttttttttttttt
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
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 !!!
I’m happy that it was helpful to you. You can check my new video for getting tweets by keywords: th-cam.com/video/FmbEhKSpR7M/w-d-xo.html
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...
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.
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'].
Thanks@@aispectrum
how if we want to get the user who mention user tweet ? do we use tweet.user. too ?
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?
For getting tweets by searching keywords/hashtags, you can check out this video: th-cam.com/video/FmbEhKSpR7M/w-d-xo.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.
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?
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
Thank you a lot!!
could you please upload a video on how to retrieve tweets with specific words?
I have plan to publish a video for this after holidays.
@@aispectrum looking forward to this subject too! thanks for this tutorial very informative!
@@aispectrum Specific words or users would be great. For example return all the tweets mentioning @Facebook for example.
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.
I wonder how one might save other things like searches and hashtags or other pages on twitter.
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()?
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).
@@aispectrum Sir, I have elevated access but it only collect 100 tweets. How can I collect 1k tweets for a single csv?
@@geraldwinata8346 you got It?
bro thank you, you saved me
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
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? :/
Same boat. Have you found the solution?
My list of tweets, dataframe are empty. i don't understand why
Very helpful!
Can you develop a hashtag recommendation system for twitter in python using twitter datasets ?
When I save data to CSV with pandas and open it in excel, the data does not order and it is a mess situation 🙂
can you get geolocation off of the tweets
It will throw error for tweepy.. May I know what is the latest version
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!
Really cool stuff. Thanks. I became a subscriber and will definitely be checking your channel.
Awesome, thank you!
excellent, thanks!!
I need to have tweets from RTErdogan. where should I mention this account name into this code?
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. 😕
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?
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.
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.
Thanks for great video and coding. Can you find how many times tweet and share your tweet ? (meaning count)
Yok hayır
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
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
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
Thanks for your sharing.
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?
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.
I need the tweet date range but in tweepy there is no since and until function anymore, do you guys have a solution?
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.
@@aispectrum ok i'll try. thank you very much
thank you guys for your valuable support, but i have a question how to download hate speech image in twitter
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
what is the name of your platform that coding in it?
Can you do explanation for Ruby On Rails app ?
Thanks ALOT!
Thank you so much.
The elevated access is still free as the basic access?
Appreciate you sir
Thank you, I believe collecting Twitter data with a free developer account is no longer possible. Is this correct?
How can i create a url callback and an own website? It requires me as mandatory to get access to the api
For the Callback URL and website URL, you can copy the link to your GitHub repository.
how to tweet or reply tweet using python?