Запросы всегда возвращают ответ 407.Python

Программы на Python
Anonymous
Запросы всегда возвращают ответ 407.

Сообщение Anonymous »


Need help with a 407 response? I can't solve this problem. I had a parser for a Korean car site that worked daily for one month until it showed a 407 error. I googled that the problem is solved by proxy substitution, but either I'm doing something wrong, or the proxy does not fix the problem.

Sample code to test:
import requests proxies = { 'https': 'http://user:pass@xx.xxx.xx.xxx:xxxx' } url = 'https://api.encar.com/search/car/list/m ... nt=true&q=(And.Hidden.N._.(C.CarType.N._.Manufacturer.%EB%A7%88%EC%AF%94%EB%8B%A4.))&sr=%7CModifiedDate%7C0%7C200&inav=%7CMetadata%7CSort' response = requests.get(url, proxies=proxies) print(response.status_code)

Источник: https://stackoverflow.com/questions/767 ... sponse-407

Вернуться в «Python»