Skip to main content

Simple downloader for 77file.com website

Project description

77file.com Simple Downloader

Installation

Install project locally

  1. Clone repository

    git clone https://github.com/bayy420-999/ssf-downloader.git
    
  2. Install required python dependencies

    pip install -r requirements.txt
    
  3. Install project

    pip install .
    

Install project from pip

pip install 77file-downloader

Usage

As a library

  1. Importing library

    # This library is asynchrounus library
    # so you need to import asyncio
    import asyncio
    # Import SSFClient
    from ssf_downloader.client import SSFClient
    
  2. Initialize SSFClient

    You can initialize SSFClient within async context manager

    async def main():
        # You can pass username and password directly
        # or leave it blank, and pass username and password when login()
        async with SSFClient() as client: 
            # Do stuff
    

    Or you initilize the client manually (dont forget to close the session)

    async def main():
        # You can pass username and password directly
        # or leave it blank, and pass username and password when login()
        client = SSFClient()
        # Do stuff
    
        # Close session
        await client.close()
    
  3. Login

    # Username and password is optional
    # but if you didn't pass it during client intialization
    # you need to pass it during login
    await client.login(username, password)
    
  4. Register (Optional)

    If you don't have 77file.com account, you can register it by calling client.register() method, and pass your registration details

    await client.register(username, email, password)
    
  5. Get file details (filename, download_link, etc)

    # Pass 77file.com file url
    file_details = await client.get_file_details(url)
    filename = file_details.file_name
    file_size = file_details.file_size
    download_link = file_details.link
    print(f'{filename=}\n{file_size=}\n{download_link=}')
    

The final result would be like in main.py file

As CLI Tools

Once you register/login, your login session will be saved

  1. Register

    ssf_downloader register --username='your_username' --email='your_email@example.com' --password='your_password'
    
  2. Login

    ssf_downloader login --username='your_username' --password='your_password'
    
  3. Get file details

    ssf_downloader get_file --url='77file.com url' | jq
    

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

77file-downloader-1.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

77file_downloader-1.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file 77file-downloader-1.0.1.tar.gz.

File metadata

  • Download URL: 77file-downloader-1.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for 77file-downloader-1.0.1.tar.gz
Algorithm Hash digest
SHA256 451c5bba9dbb9926a08bfd04e0288713ef39b6b62ca0f10fdd5069f76be93647
MD5 0445371fd90cb320dcb7c80cbf2bc7d7
BLAKE2b-256 b4c6ad6bb863f754efba4dd242d16f1a794c319c21ba2dec67d3cb6c5e5d9f1e

See more details on using hashes here.

File details

Details for the file 77file_downloader-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for 77file_downloader-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0bfa1a24b322d85d39e91d92939addd6acd91e7a50eb9794f55865f48124438c
MD5 1cd6d763d4d55008f9a82af07f572c8c
BLAKE2b-256 2fbac45dcea5498c582848f07d7f098957c2d3068d51586f7e4833df22c0e76e

See more details on using hashes here.

Supported by

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