Simple downloader for 77file.com website
Project description
77file.com Simple Downloader
Installation
Install project locally
-
Clone repository
git clone https://github.com/bayy420-999/ssf-downloader.git
-
Install required python dependencies
pip install -r requirements.txt
-
Install project
pip install .
Install project from pip
pip install 77file-downloader
Usage
As a library
-
Importing library
# This library is asynchrounus library # so you need to import asyncio import asyncio # Import SSFClient from ssf_downloader.client import SSFClient
-
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()
-
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)
-
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)
-
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
-
Register
ssf_downloader register --username='your_username' --email='your_email@example.com' --password='your_password'
-
Login
ssf_downloader login --username='your_username' --password='your_password'
-
Get file details
ssf_downloader get_file --url='77file.com url' | jq
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
Built Distribution
Close
Hashes for 77file_downloader-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfa1a24b322d85d39e91d92939addd6acd91e7a50eb9794f55865f48124438c |
|
MD5 | 1cd6d763d4d55008f9a82af07f572c8c |
|
BLAKE2b-256 | 2fbac45dcea5498c582848f07d7f098957c2d3068d51586f7e4833df22c0e76e |