Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

156
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda