Download and read files from the web.
Project description
WebFiles
Download files hosted on the internet and parse with python
Core class construct:
import wget
class WebFile:
def __init__(self, http_address, local_path=None):
self.http_address = http_address
if local_path:
self.local_path = local_path
else:
self.local_path = os.path.basename(http_address)
def download(self):
if not os.path.exists(self.local_path):
wget.download(self.http_address, self.local_path, bar=False)
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
WebFiles-0.0.1.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file WebFiles-0.0.1.tar.gz.
File metadata
- Download URL: WebFiles-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3ca7342d37c1de3aad6d7ab906466056659f2e6c714ff4241996436d259bfcc
|
|
| MD5 |
1f2165141a7d77527b28b7efa0789169
|
|
| BLAKE2b-256 |
64511dc52e92afef467485e124fba3a62cd37ee27ab15d859f646a123e8a7961
|
File details
Details for the file WebFiles-0.0.1-py3-none-any.whl.
File metadata
- Download URL: WebFiles-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f54ba95420002bb6aba90dec94a84b3eb175bbe531fed53324fe5667d4984335
|
|
| MD5 |
8bbee7b87e1bd0f06cf45a2d32bab780
|
|
| BLAKE2b-256 |
b342f226bed59aae6e90cec5d5eeb49399c74770adf1c8ac5b82095348b7f744
|