我在巴西利亚总统米歇尔·特梅尔做一些分析,我想为他这周会见的人做一个viz。你知道吗
但我不知道为什么我不能从网站上检索数据。你知道吗
我通过Curl获取数据,我已经通过python尝试了urllib2,但是我被请求卡住了。这只是卡住了,得到超时。你知道吗
这就是我要做的:
我的请求:
curl https://www2.planalto.gov.br/acompanhe-planalto/agenda-do-presidente/agenda-do-presidente-michel-temer/2017-06-09?month:int=6&year:int=2017 --insecure
我添加了一个详细信息来查看发生了什么:
* Trying 170.246.252.230...
* Connected to www2.planalto.gov.br (170.246.252.230) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /home/t****/anaconda2/ssl/cacert.pem
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / DHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=BR; O=ICP-Brasil; OU=PR-DITEC; OU=Autoridade Certificadora da Presidencia da Republica; CN=www2.planalto.gov.br
* start date: Dec 23 19:31:39 2016 GMT
* expire date: Dec 23 19:31:39 2017 GMT
* issuer: C=BR; O=ICP-Brasil; OU=Autoridade Certificadora Raiz Brasileira v2; CN=Autoridade Certificadora da Presidencia da Republica v4
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
> GET /acompanhe-planalto/agenda-do-presidente/agenda-do-presidente-michel-temer/2017-06-08?month:int=6&year:int=2017 HTTP/1.1
> Host: www2.planalto.gov.br
> User-Agent: curl/7.49.0
> Accept: */*
>
* SSL read: error:00000000:lib(0):func(0):reason(0), errno 110
* Closing connection 0
curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 110
有办法得到这些信息吗?还是解决方案?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐