/twitter_scraping

Primary LanguageJupyter Notebook

twitter scraping tool

enter your account info into twitter_config.py
run the notebook file, it can fetch tweets from your following page
demo as the following:

--------------- num of tweets: 25 ----------------
-------------------- tweet<0> --------------------
link: /Law360/status/1734203905616347381
text: Welcome to Monday and a quick roundup of some of Law360's biggest news.
imgs: https://pbs.twimg.com/media/GBEhQvsbMAAGHjZ?format=jpg&name=small
vids: None
stats: {'reply': '1', 'repost': '', 'like': '', 'view': '245'}
date: 2023-12-11 21:30:05+08:00
-------------------- tweet<1> --------------------
link: /Law360/status/1734205167724319054
text: The D.C. Circuit issued a narrowed gag order restraining Donald Trump's public statements amid his criminal election interference case after finding a lower court restricted "more protected speech than is necessary."
imgs: None
vids: None
stats: {'reply': '', 'repost': '', 'like': '', 'view': '58'}
date: 2023-12-11 21:35:06+08:00
-------------------- tweet<2> --------------------
link: /TheBlock__/status/1734205007585533976
text: Animoca Brands, Chainalysis among crypto firms targeted by $500 million fund: report
imgs: None
vids: None
stats: {'reply': '5', 'repost': '1', 'like': '5', 'view': '1K'}
date: 2023-12-11 21:34:28+08:00
-------------------- tweet<3> --------------------
link: /CoinDesk/status/1734204513127460930
text: Bitcoin dropped after surging last week to yearly highs and Goldman Sachs brought forward its estimate for the Fed’s first interest-rate cut. @LedesmaLyllah and @godbole17 report in First Mover Americas.
imgs: None
vids: None
stats: {'reply': '10', 'repost': '3', 'like': '15', 'view': '3.3K'}
date: 2023-12-11 21:32:30+08:00
-------------------- tweet<4> --------------------
link: /BTCTN/status/1734204288014950574
text: #Stablecoin Supply Turns Positive for the First Time in Nearly Two Years — Study #zeroknowledge #defi
imgs: None
vids: None
stats: {'reply': '21', 'repost': '2', 'like': '15', 'view': '1.9K'}
date: 2023-12-11 21:31:36+08:00

...