How to Extract Data from Twitter using Python [Tweepy API]

preview_player
Показать описание
In this video we discuss how to extract data from twitter using python leveraging the tweepy API to pull the tweets.

Once you have your account go to github, I have the full code for the video available here:

All you need to do is remove the hash from the start of the lines and add the Consumer key, Consumer Secret Key, Your Access token and Access Token Secret. With this in hand you are ready to extract data from twitter using Python.
Рекомендации по теме
Комментарии
Автор

Amazing video mate, earned yourself a new sub - such a shame about elon screwing us with the API, subbed with notifications on for the next one!

mattfromblock
Автор

The search_tweets attribute /method of tweepy library works only if you have full API v2 and not free as it require high access level, So you have to pay to Twitter for high level API key.

gulabjamun
Автор

Amazing and thank you so much for sharing!

noumanahmad
Автор

el nivel de acceso actual de la API free de twitter no da acceso a extraer la informacion de los tweets de la manera que has propuesto

adrianramos
Автор

is there a documentation about how to write the query? I'm looking for it on tweepy docs but I can't found it until now

khairulumam
Автор

up to how many tweets can you set for the query to still work? can it handle more than 1000?

paulomacasaet
Автор

Can you post the updated video, if any? and share the video link? When can you do so? 453

nehagaryali
Автор

how to extract the geographic location information fo each tweets?

douglas
Автор

it really was amazing when it lasted. thanks still.

ogspeace
Автор

very helpful, how do you get the user location? (to another column) , searching for a similar extraction is for my MSc project. many thanks

sbdrdrt
Автор

Thanks Adam, really useful. I'm getting this error auth = tweepy.OAuthlUserHandler(
AttributeError: module 'tweepy' has no attribute 'OAuthlUserHandler'. Did you mean: 'OAuthHandler'?

brumpmk
Автор

I get that error
Status Failed On, 401 Unauthorized
32 - Could not authenticate you.

akiramahilynaguirrelugo
Автор

Thank you for this video. I will try the Basic subscribe to see if this works. I saw a few in the comment sections with issues. I can try to find out why the error occurs.

yasmineady
Автор

Pls can you tell me can i recover my tweets that i accidently deleted yesterday?

amostarspirit
Автор

hi Adam, tks by the video. I need have acces to twitters users data like follower number, location etc.. do you know if i get this in the new twitter api in the basic plan?

daniellepompeunoronhaponte
Автор

ya no se puede extraer con la cuenta grauita 😥

asdzxc
Автор

I created a developers account for myself, but those keys that you are showing stay hidden. I can not copy them or access any of them except bearer's key. Any suggestions?

HitAndMissLab
Автор

hello adam, please, how to set the starting date and the end date of the tweet searched?

jiaweimo-dcoh
Автор

hey Adam! Trying to use the twitter API for this an analysis but each time i put in my Api credentials my intellisense marks it as an unknown. I am using vs code. What should I do? or what could be the issue

iannjagi
Автор

Really waiting for this video remaster. Error 453))

Fenix