B
B
badrbot2019-03-20 18:21:14
Python
badrbot, 2019-03-20 18:21:14

How can I parse only in Russian?

There is a site = https://www.cvkeskus.ee
I need to parse it in Russian, by default it is not Russian.
And I thought that you can send header's':

import requests

r=requests.get(url, headers={"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
                                "Accept-Encoding":"gzip, deflate, br",
                                "Accept-Language":"ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7",
                                "User-Agent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"})

But this only resulted in a Certificate Error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-03-20
@acrytzat

and you try to parse the site " https://www.cvkeskus.ee/lang/switch.php?lang=ru "

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question