title: Sign in to twitter with python
body: <p>I want to sign in to twitter with the code below and scrape twitter's data then:</p>
  
  <pre><code>import requests
  import urllib2
  
  with requests.Session() as c:
      url = "https://twitter.com/login"
      USER = "hadishamgholi74@gmail.com"
      PASS = "52518685251868"
      c.get(url)
      login_data = {"session[username_or_email]": USER, "session[password]": PASS, "authenticity_token": "4d1c2137136cb297b3e83e382b0026d9213fe731", "scribe_log": "", "redirect_after_login": "", "authenticity_token": "4d1c2137136cb297b3e83e382b0026d9213fe731"}
      c.post(url,data = login_data,headers={"Referer":"https://twitter.com"})
      page = c.get("https://twitter.com")
      print page.content
  </code></pre>
  
  <p>But it rise this error:</p>
  
  <pre><code>Traceback (most recent call last):
      File "C:/Users/Mehdi/PycharmProjects/scrap/login1.py", line 9, in &lt;module&gt;
          c.get(url)
      File "C:\Python27\lib\site-packages\requests\sessions.py", line 473, in get
          return self.request('GET', url, **kwargs)
      File "C:\Python27\lib\site-packages\requests\sessions.py", line 461, in   request
          resp = self.send(prep, **send_kwargs)
      File "C:\Python27\lib\site-packages\requests\sessions.py", line 573, in send
          r = adapter.send(request, **kwargs)
      File "C:\Python27\lib\site-packages\requests\adapters.py", line 431, in send
          raise SSLError(e, request=request)
  requests.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:581)
  </code></pre>
  
  <p>What should i do?</p>