Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
Scraping exact follower counts from Twitter with Python and Selenium

I'm trying to extract extract follower numbers from Twitter profile homepages using Python and Selenium.

driver = webdriver.Chrome('path')

driver.get('https://www.twitter.com/someprofile') ## (after signing in)

wait = WebDriverWait(driver, 10)

f = wait.until(EC.visibility_of_element_located((By.XPATH, '(//*[@id="react-root"]/div/div/div[2]/main/div/div/div/div[1]/div/div[2]/div/div/div/div/div[5]/div[2]/a/span[1]/span)'))).text

print(f)

But this only returns follower numbers for large accounts to the nearest 100 followers for accounts in the 10s - 100s of thousands of followers size range. Is there any way to get at the exact follower counts as per the API?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!