Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lidymonteiro/17900dfa530928d35d1104900df30406 to your computer and use it in GitHub Desktop.
Save lidymonteiro/17900dfa530928d35d1104900df30406 to your computer and use it in GitHub Desktop.
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)
@lidymonteiro
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment