Automation · library
requests
Programs that talk to the internet: requests and responses, JSON, params and headers, POST, errors and retries, sessions — ending with central bank exchange rates over a period. Tasks are checked against a tiny server on your own computer, and “Run” makes real requests to live APIs.
6 topics · 16 challengesChallenges solved0 of 16
- 01ContinueУстановкаPython, редактор кода, библиотека requests и мост CodeWithMe0 / 1
- 02Первый запросrequests.get, status_code, ok, text, json(), timeout, курс валют ЦБ0 / 3
- 03Параметры и заголовкиparams, кодирование URL, headers, Authorization, Accept, urljoin, постраничная выдача0 / 3
- 04Отправка данныхPOST, json= и data=, 201 Created, редиректы после формы, PATCH, PUT, DELETE0 / 3
- 05Ошибки и повторыtimeout, Timeout и ConnectionError, raise_for_status, плохой JSON, повторы с паузой, 429 и Retry-After0 / 3
- 06Сессии, файлы и курс за периодSession и cookie, stream и iter_content, хеш файла, архив курсов ЦБ с выходными0 / 3