JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.31k stars 698 forks source link

How to fetch information on a Twitter user given a screenname? #133

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi! Is it possible in Twitter to get all the user information from the screenname, using snscrape?

JustAnotherArchivist commented 3 years ago

Yes. CLI: snscrape --jsonl --with-entity --max-results 0 twitter-user screenname API: snscrape.modules.twitter.TwitterUserScraper('screenname').entity You will get an object similar to the ones on each tweet's user key. This is only available in the development version currently.