0
I made a Python script to access the TJ-SP website to do a certain search and make a Web Scraping with the search result.
i want to pick up the text that is contained in that tag: <span class>1009238445480</span> ==$0
, only that the element class
has no value
also has other parts of HTML that contain this:
has the tag <span class="labelClass">Área:</span> Cível
,
on this tag I need to get the value Cível
has the tag <span id class>Perdas e danos</span>
id class
does not contain any value
I also have another tag:
<td valign> ==$0
<span id class>R$ 245,00</span>
</td>
need to capture the value R$ 245,00
here is my script
from selenium import webdriver
from bs4 import Beautifulsoup
from time import sleep
URL = 'https://esaj.tjsp.jus.br/cpopg/open.do'
user = 'x0x0x0x0x0x0x'
password ='x0x0x0x0x0x0x'
browser = webdriver.Chrome()
browser.get(URL)
browser.find_element_by_id('login').click()
browser.find_element_by_name('user').send_keys(user)
browser.find_element_by_name('password').send_keys(password)
browser.find_element_by_id('Enviar').click()
browser.find_element_by_id('NUMB').send_keys('1009238445480')
browser.find_element_by_id('Enviar_').click()
scrap = BeautifulSoup(browser.page_source, "html.parser")
processo = scrap.find('span', {'class':' '' '})
print(processo)
here I am trying to get the value of the tag: <span class>1009238445480</span> ==$0
processo = scrap.find('span', {'class':' '' '})
print(processo)
then he returns to me:
None
someone can help me ?