Answer the question
In order to leave comments, you need to log in
How to read yandex cookies through python?
Faced this problem:
conn = sqlite3.connect('Cookies') #будем считать что файл "Сукис" уже в одной папке со скриптом
cursor = conn.cursor()
cursor.execute('SELECT host_key, name, value, encrypted_value FROM cookies WHERE name = "yandexuid"') #для тестов взял рандомный кук с домашней страницы яндекса
for host_key, name, value, encrypted_value in cursor.fetchall():
print(host_key, name, value, encrypted_value)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question