Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

SSLError while extracting direct URL #1

Open
pavel-sakun opened this issue Oct 24, 2014 · 3 comments
Open

SSLError while extracting direct URL #1

pavel-sakun opened this issue Oct 24, 2014 · 3 comments

Comments

@pavel-sakun
Copy link

Getting this error with https://yadi.sk/d/tbiHJgmT9fYK8

requests.exceptions.SSLError: hostname 'yadi.sk' doesn't match either of 'beta.disk.yandex.kz', 'disk.yandex.com.ua', 'disk.yandex.ru', 'disk.ya.ru', 'disk.yandex.com', 'disk.yandex.com.tr', 'disk.yandex.net', 'disk.yandex.by', 'disk.yandex.kz', 'disk.yandex.ua', 'beta.disk.yandex.by', 'disc.yandex.ru', 'disc.yandex.com', 'disc.yandex.com.tr', 'files.yandex.ru', 'files.yandex.com', 'files.yandex.com.tr', 'myfiles.yandex.ru', 'myfiles.yandex.com', 'myfiles.yandex.com.tr', 'www.yadi.sk', 'beta.disk.yandex.ru', 'beta.disk.yandex.com', 'beta.disk.yandex.com.tr', 'beta.disk.yandex.ua'

@tuntapovski
Copy link

this can be fixed by adding verify=False parameter in every requests object.
for example:
http://i.imgur.com/ucQMmLS.jpg

plus, if u dont wanna see error messages of urllib3, you have to add (after import requests)
requests.packages.urllib3.disable_warnings()

example: http://i.imgur.com/YUkO5Q2.jpg
source: http://stackoverflow.com/questions/27981545/surpress-insecurerequestwarning-unverified-https-request-is-being-made-in-pytho

@acidjunk
Copy link

I tried it by adding verify=False to all request calls.
But that yields me a: Something went wrong during pass.yandex.ru request.

@tuntapovski
Copy link

script doesn't work tho.
yandex have must changed his code milion times in this period.
script needs to be updated

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

3 participants