Skip to content

Instantly share code, notes, and snippets.

View lidymonteiro's full-sized avatar
😜

Lidy Monteiro lidymonteiro

😜
View GitHub Profile
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={
Exception in thread Thread-9:
Traceback (most recent call last):
File "site-packages/urllib3/connectionpool.py", line 677, in urlopen
File "site-packages/urllib3/connectionpool.py", line 426, in _make_request
File "<string>", line 3, in raise_from
File "site-packages/urllib3/connectionpool.py", line 421, in _make_request
File "http/client.py", line 1344, in getresponse
File "http/client.py", line 306, in begin
File "http/client.py", line 267, in _read_status
File "socket.py", line 589, in readinto