Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda