Scrape Twitter Data in Python with Twitterscraper Module

Scrape Twitter Data in Python with Twitterscraper Module

Ken Jee

5 лет назад

46,741 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Sakshi Gupta
Sakshi Gupta - 12.01.2023 05:43

Is there any other way to return tweets as this is not working?

Ответить
3D Printed Engineer
3D Printed Engineer - 30.04.2022 00:41

nice big forehead

Ответить
C F
C F - 23.04.2022 06:10

Simply awesome!

Ответить
Ritik Mathur
Ritik Mathur - 09.03.2022 21:54

AttributeError: 'NoneType' object has no attribute 'find_all' @Ken Jee can you help

Ответить
e-scraper.соm service. [Data Extraction]
e-scraper.соm service. [Data Extraction] - 23.02.2022 18:56

Awesome way of web scraping, thank you for your input. Also, Difficult cases may require a web scraping services.

Ответить
T
T - 22.12.2021 23:59

Is this a private module, why does it give an error at the end?

Ответить
Sumanth N S
Sumanth N S - 14.12.2021 16:34

AttributeError: 'NoneType' object has no attribute 'find_all'

What does the above error mean?

Ответить
Robbie C
Robbie C - 12.10.2021 15:11

Thanks for the tutorial - super useful! Is it possible to use the Twitterscapper module to "pull" tweets by their tweet ID?

Ответить
Omar Luna
Omar Luna - 14.09.2021 04:04

Does anyone knows how I can fix this: attributeerror: 'nonetype' object has no attribute 'find_all'? I can't find a viable solution to fix this so far!

Ответить
Sriram R
Sriram R - 12.09.2021 10:07

from twitterscraper import query_tweets is resulting in an error for me (AttributeError: 'NoneType' object has no attribute 'find_all'). Can anyone help?

Ответить
MASTI FATCHIYAH M
MASTI FATCHIYAH M - 09.08.2021 09:33

Is everyone still can use this module today? because my code returning 0 tweets.

Ответить
Sathiya Raju
Sathiya Raju - 26.07.2021 18:48

Hey Ken, thanks for the video. I tried this, but I couldn't gather any tweets returns only empty dataframe but no error. Can you suggest any solution?

Ответить
Jagan jr
Jagan jr - 24.06.2021 11:06

I get ModuleNotFoundError: No module named 'scrapy.conf' for after import query_tweets. It won't properly run.

Ответить
Miguel Benitez
Miguel Benitez - 19.05.2021 18:51

I have a question. In the query_tweets structure, how do I filter tweets only from certain accounts?

Ответить
Deswill
Deswill - 14.05.2021 18:48

how to instead of begin and end date just give the latest one since the script started running?

Ответить
Christian Gardner
Christian Gardner - 17.04.2021 00:41

This is awesome!

Ответить
RGM
RGM - 19.03.2021 15:48

is still working? got the error 'IMapUnorderedIterator' object has no attribute '_write_to' Can't find a solution

Ответить
nur insyirah
nur insyirah - 18.03.2021 16:59

Why it appear SyntaxError: invalid syntax for enddate = end_date?

Ответить
Xeltor
Xeltor - 04.03.2021 15:43

Is this even still working? I try to query user info, everytime the user info is a "NoneType"

Ответить
LUCAS
LUCAS - 02.03.2021 17:56

This is very simple yet useful example. Thanks.

Ответить
Patrick Asis
Patrick Asis - 14.01.2021 07:33

why nothing happened? is this not working right now?

Ответить
Prayogame
Prayogame - 29.12.2020 17:34

Hi ken, Im new with python. how to instal twitter scraper? when I pip install twitterscraper, the result "syntax error: invalid syntax"
Im using python 3.9.

btw, ur tutorial was great.

Ответить
Adluri Rohith
Adluri Rohith - 05.11.2020 11:30

Very much helpful

Ответить
BANGLICU Gaming
BANGLICU Gaming - 28.10.2020 12:49

sorry, why i got htmlsessiin object or request_html module?

Ответить
Prerana Singh
Prerana Singh - 06.10.2020 17:28

the above code gives me blank or square bracket result[]

Ответить
ade putri
ade putri - 18.09.2020 16:28

I tried to implement this code using sublime and run it on windows powershell. I got an error on line tweets = query_tweets, unexpected keyword argument begindate.

Ответить
Ankita Dixit
Ankita Dixit - 11.09.2020 15:01

can we add url instead of user names ?

Ответить
BetterBeing
BetterBeing - 29.08.2020 12:46

I'm getting the follwing error: 'IMapUnorderedIterator' object has no attribute
Please advise.

Ответить
Warwick Jones
Warwick Jones - 15.08.2020 04:28

Hey Ken, is there a way to add multiple search queries within Python.

For example, I want to search for tweets that include the term "Australia" and either "olympics OR sport".

Ответить
Sebastian Becerra
Sebastian Becerra - 12.08.2020 21:50

HI Ken, Has it worked again?

Ответить
Andy Fung
Andy Fung - 04.08.2020 11:01

Is notre dam fire a searched keywords in tweets or what does it refers to ...? And how to add the parameter of hashtag??

Ответить
Md. Hafizur Rahman
Md. Hafizur Rahman - 25.07.2020 22:15

This Video is really good, but it does not give 24 hours tweets.

Ответить
X
X - 16.07.2020 05:28

Thank you so much for this tutorial, it's been the most useful one for my scraper projects so far!

Ответить
faizan khan
faizan khan - 04.07.2020 17:30

Hi I would like to get the tweets with respect to a specific key word for a specified time period

Ответить
Mohit Nagarkoti
Mohit Nagarkoti - 03.07.2020 12:24

Greate Help

Ответить
Nirmala Soni
Nirmala Soni - 02.07.2020 16:39

Hey Ken thank you for this very helpful video! I'm using your code and I tried to scrap tweets for a specific user but I can't use it for a specific user. What could the problem be there?HELP

Ответить
Amazing-Grace Olutomilayo
Amazing-Grace Olutomilayo - 17.06.2020 12:18

I have liked and subscribed 🙂

Ответить
‍김명자(스마트관광원)
‍김명자(스마트관광원) - 06.06.2020 17:25

Thank you so much for the very useful tutorials!

Ответить
Celia Clements
Celia Clements - 05.06.2020 14:40

This is a very well explained video! I am trying to get the tweets of one specific user, but the 'user' parameter that you mentionned doesn't seem to work ... any ideas on how I could achieve this? thanks!

Ответить
Jiancheng Shi
Jiancheng Shi - 03.06.2020 19:31

Thanks for the video. I run the following:
tweets = query_tweets("Trump", begindate = begin_date,enddate=end_date,limit=limit,lang=lang)

INFO: queries: ['Trump since:2020-06-01 until:2020-06-02']
INFO: Got 0 tweets (0 new).

received 0 tweets. would you happen to know why?

Ответить
Antonio Focella
Antonio Focella - 03.06.2020 13:04

Hi Ken, thanks for sharing the video, it's clear and gets rigth to the point. However, though I follwed each step, once I try to run the code I always get the following output:
INFO: Got 0 tweets (0 new).
INFO: Got 0 tweets (0 new).
regardless of query, limit or language used. Do you have any idea of why this happens?

Ответить