I'm using the python package requests
to send requests to https://mobile.twitter.com/username/following
.
At first, I encounter the exception : requests.exceptions.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol
. To solve that, I follow this solution to write a SSLAdapter to specify PROTOCOL_TLSv1
.
After that, I encounter another exception : requests.exceptions.SSLError: [Errno bad handshake] (-1, 'Unexpected EOF’)
. And, I found this, but i send request and receive data in the same process.
Maybe i have sent the requests too fast?