2
Simple thing. I need to count how many candidates there are in the table of this page, for example : http://www.ufjf.br/cdara/sisu-2/sisu-2017-1a-edicao/lista-de-espera-sisu-3/? id_curso=01GV&id_grupo=70 For example there are 110 names, but I need to get this number and I have to do this on a huge number of pages with the same structure. Here’s what I’ve tried :
from bs4 import BeautifulSoup
import requests
import string
import re
import urllib
r = requests.get('http://www.ufjf.br/cdara/sisu-2/sisu-2017-1a-edicao/lista- de-espera-sisu-3/?id_curso=01GV&id_grupo=70')
soup = BeautifulSoup(r.text, "html.parser")
contador = 0
for node in soup.findAll(".XXX-XX<"):
contador = contador+1
print(contador)
Except he’s not finding these characters, and they’re there, in the Cpf column, for example... How to do this ?
It is not useful to count how many <td> elements you have in the table <table id="Sisu">?
– Murillo Goulart
Will you scroll through all the pages? http://.... &id_group=70, http://.... &id_group=71 ... And increment the candidate number into a single variable?
– Miguel