/twitterUsernamefromUserID

twitterUsernamefromUserID is an advanced Twitter scraping tool written in Python and Selenium that allows for scraping tweet usernames from the twitter id's, without using Twitter's API.

Primary LanguagePythonMIT LicenseMIT

Pull Requests Welcome first-timers-only Friendly GitHub license Selenium Python Chrome

No authentication. No API. No limits.

twitterUsernamefromUserID is an advanced Twitter scraping tool written in Python and Selenium that allows for scraping tweet usernames from the twitter id's, without using Twitter's API.

tl;dr Benefits

Some of the benefits of using twitterUsernamefromUserID vs Twitter API:

  • Can fetch all tweet usernames from their id's (Twitter API limits to last 3200 Tweets only);
  • Fast initial setup;
  • Can be used anonymously and without Twitter sign up;
  • No rate limitations.

Requirements

  • Python >= 3.6
  • Selenium
  • WebDriver Manager

Installing

Pip:

- pip3 install twitterUsernameviaUserID
- Voila!

Example:

    from twitterUsernameviaUserID import getHandles as gH
    # A dictionary with mapped user ids to their usernames
    temp= gH.getHandles([<list of user ids>], <delay time between request>)