Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

ssl object handshake error #20

Open
stajilov opened this issue Feb 2, 2021 · 0 comments
Open

ssl object handshake error #20

stajilov opened this issue Feb 2, 2021 · 0 comments

Comments

@stajilov
Copy link

stajilov commented Feb 2, 2021

  File "parse_job.py", line 20, in <module>
    collect_latest_tweets()
  File "parse_job.py", line 17, in collect_latest_tweets
    tweet_count, tweet_id, tweet_time, dump_path = tweet_scrapper.get_profile_tweets()
  File "/home/vladimir/.local/lib/python3.6/site-packages/tweetscrape/profile_tweets.py", line 65, in get_profile_tweets
    log_file=output_file_name)
  File "/home/vladimir/.local/lib/python3.6/site-packages/tweetscrape/tweets_scrape.py", line 173, in execute_twitter_request
    proxies=self.__twitter_request_proxies__)
  File "/home/vladimir/.local/lib/python3.6/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/home/vladimir/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/vladimir/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/vladimir/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/vladimir/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/vladimir/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/vladimir/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/vladimir/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/vladimir/.local/lib/python3.6/site-packages/urllib3/connection.py", line 421, in connect
    tls_in_tls=tls_in_tls,
  File "/home/vladimir/.local/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 429, in ssl_wrap_socket
    sock, context, tls_in_tls, server_hostname=server_hostname
  File "/home/vladimir/.local/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 472, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
tweet_scrapper = TweetScrapperProfile(acc.username, 10, 'twitter.csv', 'csv')
tweet_count, tweet_id, tweet_time, dump_path = tweet_scrapper.get_profile_tweets()
print("Extracted {0} tweets till {1} at {2}".format(tweet_count, tweet_time, dump_path))

It hangs on SSL handshake,
What might be wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant