Twitter API - Data Mining #3

preview_player
Показать описание
Using Tweepy to search for tweets and process them. We also cover Cursor object for iteration which helps in retrieving large amount of data from Twitter.

GitHub/NBViewer Link:
Рекомендации по теме
Комментарии
Автор

that's the most clear and easiest tutorial i've watched about Twitter API until now, Thank you so much :)

kaka
Автор

Best tutorial ever! I've spent a long time trying to figure things out by myself. Your explanation was clear and on point. Thank you again for the video.

humma
Автор

beautiful. you made it crystal-clear - i really needed the pandas part. thank you.

quku
Автор

So helpful! Thanks for making a great video.

CTHutt-meus
Автор

Hi! Thanks for this tutorial! What is "destroy" method of a tweet?

alessandroschirinzi
Автор

Hi, Thanks for the tutorial! It was great, but I have a question for you...

I am a newbie in Python and I am using tweepy for my master thesis (I am a marketing management student). I am trying to get the friendhips relationships bewteen two twitter users ( companies in my case), but I can't figure out how to make this api method works.

I would like to retrieve a simple 0, 1 results where 0 = "not following" and 1 ="following".

this is my code just for the part I am interested in:

if api.show_friendship(source_screen_name='amazon', target_screen_name='eBay'):
print ('1')
else:
print ('0')

Any hint or Examples you can provide to me for this??? Please if possibile make it simple for me :))

THANKS!

fedelauda
Автор

Hi, i'm using sublime and how i can execute this line data_set.head(5)? In general, how i can have acess to my storage results?

kpiaum
Автор

Hi Roshan I dont know if you are still around as its been a while since this vid was uploaded. Can we use this CURSOR method to retrieve say the last 5000 tweets of a given text? Not sure if the API allows for this?

devidodge
Автор

Hey man thanks for the video, i get the error

File "<ipython-input-10-a94c9079cfc5>", line 2
print "@%s - %s (%s)" % (tweet.user.screen_name, tweet.user.name, tweet.created_at)
^
SyntaxError: invalid syntax

when i try to print out the tweet as you do in 3:40, what is wrong?

Thank you

Vizition
Автор

I keep getting this error:

auth = tweepy.OAuthHandler(consumer_key=consumer_key,
AttributeError: 'module' object has no attribute 'OAuthHandler'

Any ideas?

cedyarish
Автор

Thanks a lot for this tutorial!
What is np?

+ 0.4, sources.index)

It throws an error on my comp

NameError: name 'np' is not defined

Regards,
Helio (from Brazil)

araujohs
Автор

Thanks a lot for this tutorial, but i need to search in gulf countries only, how i can to do this?

MuhammadTartouri-jo
Автор

hi i m getting error in importing tweepy..modulenotfound same for mathplotlib...plz help

TheHorizons
Автор

Hi can I use this code to download movie reviews and ratings from twitter? Please reply me

shampurnadas
Автор

how can I save the output in .csv file?

etyty
Автор

NameError: name 'xrange' is not defined.. Anyone else getting this?

Dosflamingos
Автор

Dear Sir, My name is Osama A. Abu Dahrooj. I work at Al Quds Open University and I am pursuing my M.A. in Computer. My thesis revolves around tweets about political . Actually, i'd like to enquire to purchase the data (which is going to be for academic purposes) in the duration: ·         27-12-2008 to 18-01-2009·         14-11-2012 to 21-11-2012·         08-07-2014 to 28-08-2014·         The beginning of 2016 until nowThe tweets must be collected only from major English speaking counties such as the US, UK, Canada and Australia. Thanks

OSAMAABUDHROOJ