Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WebFiles-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for WebFiles-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e3ca7342d37c1de3aad6d7ab906466056659f2e6c714ff4241996436d259bfcc
MD5 1f2165141a7d77527b28b7efa0789169
BLAKE2b-256 64511dc52e92afef467485e124fba3a62cd37ee27ab15d859f646a123e8a7961

See more details on using hashes here.

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

Hashes for WebFiles-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f54ba95420002bb6aba90dec94a84b3eb175bbe531fed53324fe5667d4984335
MD5 8bbee7b87e1bd0f06cf45a2d32bab780
BLAKE2b-256 b342f226bed59aae6e90cec5d5eeb49399c74770adf1c8ac5b82095348b7f744

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page