Created
June 12, 2021 18:54
-
-
Save lidymonteiro/17900dfa530928d35d1104900df30406 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TjalSpider(scrapy.Spider): | |
name = 'tjal' | |
allowed_domains = ['www2.tjal.jus.br'] | |
start_urls = ['https://www2.tjal.jus.br/cpopg/open.do'] | |
def start_requests(self): | |
yield scrapy.FormRequest( | |
method='GET', | |
url='https://www2.tjal.jus.br/cpopg/open.do', | |
formdata={ | |
'cbPesquisa': 'NUMPROC', | |
'numeroDigitoAnoUnificado': '0710802-55.2018', | |
'foroNumeroUnificado': '0001', | |
'dadosConsulta.valorConsultaNuUnificado': '0710802-55.2018.8.02.0001', | |
'dadosConsulta.tipoNuProcesso': 'UNIFICADO', | |
}, | |
callback=self.parse, | |
) | |
def parse(self, response): | |
print("procesing:" + response.url) | |
print(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolvido: Alterei a URL para https://www2.tjal.jus.br/cpopg/search.do?conversationId=&
Que onde para onde os dados são passados na pagina de detalhe