MetricsGrimoire / Sibyl

Sibyl analyzes Question & Answer websites (similar to askbot based ones)
5 stars 3 forks source link

python request error: certificate verify failed #3

Closed canasdiaz closed 10 years ago

canasdiaz commented 10 years ago
luis@tahine:~/repos/Sibyl$ python sibyl.py -d lcanas_sibyl_test -u root -p root -t ab -l https://ask.puppetlabs.com/questions -g
Traceback (most recent call last):
  File "sibyl.py", line 132, in <module>
    askbot_parser(session, opts.url)
  File "sibyl.py", line 80, in askbot_parser
    for questionset in askbot.questions():
  File "/home/luis/repos/Sibyl/pysibyl/askbot.py", line 115, in questions
    return QuestionsIter(self.url)
  File "/home/luis/repos/Sibyl/pysibyl/askbot.py", line 44, in __init__
    self.pages = self._count_q_pages()
  File "/home/luis/repos/Sibyl/pysibyl/askbot.py", line 51, in _count_q_pages
    stream = requests.get(self.url + "/api/v1/questions/?page=1")
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get
    return request('get', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 383, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 486, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 385, in send
    raise SSLError(e)
requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed