...
Project description
http_file
Usage
Install using pip:
$ pip install http_file
Применение
.. кодовый блок :: python
#импорт вспомогательных библиотек
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
import requests
#РёРјРїРѕСЂС‚ http_file
from http_file import download_file
#создание новой сессии
s = requests.Session()
#соеденение с сервером через созданную сессию
s.get('URL_MAIN', verify=False)
"""
загрузка файла в 'local_filename' из 'fileUrl' через созданную сессию
download_file('local_filename', 'fileUrl', s)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
http-file-0.1.6.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for http_file-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0be2601f2ce0da7078d3c7661b63bc95e60a4b6c5ffe5605b3555c2fd432852 |
|
MD5 | 43fbd952bfc9430dbf3b3087434ec27a |
|
BLAKE2b-256 | 056daed99cc7c7c965a38c12afbd090f9d0decc32d56f39c05259f7128e06189 |