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?