-1
I have that error in python with requests, web scraping!:
from bs4 import BeautifulSoup as bs
from requests import *
base_url = 'https://www.vagas.com.br/'
jobsurl = f'{base_url}/vagas-em-recife'
requestsjob = get(jobsurl)
requestsjob_bs = bs(requestsjob.text, 'html.parser')
vagas = requestsjob_bs.find('a', class_='link-detalhes-vaga').get_text()
for vaga in vagas:
titulo_vaga = vagas.find('a').text
print(titulo_vaga)
Error:
titulo_vaga = vagas.find('a').text
AttributeError: 'int' object has no attribute 'text'
Here is the stackoverflow in English. You can translate the question into English or redo the question in stackoverflow in English.
– Danizavtz