Social Media Downloader for Python
Project description
btch-downloader
A lightweight Python library for downloading videos, images, and audio from Instagram, TikTok, YouTube, Capcut, Pinterest, Twitter, X, Google Drive, MediaFire, Douyin, SnackVideo, Xiaohongshu, Cocofun, Spotify, Youtube Search, SoundCloud, Threads, Kuaishou and Facebook.
Installation
Python Installation
Install the library using pip:
pip install btch-downloader
Prerequisites
- Python 3.8 or higher
- Required dependencies:
httpx - Full Documentation Official documentation.
Usage
Basic Usage
The library provides asynchronous functions to download content from supported platforms.
import asyncio
from btch_downloader import ttdl, igdl, spotify, yts
async def main():
# TikTok Downloader
tiktok_result = await ttdl("https://www.tiktok.com/@omagadsus/video/7025456384175017243")
print("TikTok:", tiktok_result)
# Spotify Downloader
spotify_result = await spotify("https://open.spotify.com/track/3zakx7RAwdkUQlOoQ7SJRt")
print("Spotify:", spotify_result)
# YouTube Search
yts_result = await yts("movie title 2023")
print("YouTube Search:", yts_result)
asyncio.run(main())
Supported Platforms and Example URLs
| Function | Platform | Example URL / Query |
|---|---|---|
ttdl |
TikTok | https://www.tiktok.com/@omagadsus/video/7025456384175017243 |
igdl |
https://www.instagram.com/reel/DKPtUL_S9Nh/?igsh=MTE1dTVkb2E4NTFmcw== |
|
fbdown |
https://www.facebook.com/netflix/videos/1393572814172251/ |
|
twitter |
Twitter/X | https://twitter.com/gofoodindonesia/status/1229369819511709697 |
youtube |
YouTube | https://youtu.be/C8mJ8943X80 |
capcut |
Capcut | https://www.capcut.com/template-detail/7299286607478181121 |
gdrive |
Google Drive | https://drive.google.com/file/d/1thDYWcS5p5FFhzTpTev7RUv0VFnNQyZ4/view |
pinterest |
https://pin.it/4CVodSq or query (e.g., "Zhao Lusi") |
|
douyin |
Douyin | https://v.douyin.com/ikq8axJ/ |
xiaohongshu |
Xiaohongshu | http://xhslink.com/o/21DKXV988zp |
snackvideo |
SnackVideo | https://s.snackvideo.com/p/j9jKr9dR |
cocofun |
Cocofun | https://www.icocofun.com/share/post/379250110809 |
spotify |
Spotify | https://open.spotify.com/track/3zakx7RAwdkUQlOoQ7SJRt |
soundcloud |
SoundCloud | https://soundcloud.com/issabella-marchelina/sisa-rasa-mahalini-official-audio |
threads |
Threads | https://www.threads.net/@cindyyuvia/post/C_Nqx3khgkI/ |
kuaishou |
Kuaishou | https://v.kuaishou.com/JT195ZHT |
yts |
YT Search | movie title 2023 (Query) |
aio* |
All-in-One | https://www.tiktok.com/@omagadsus/video/7025456384175017243 |
mediafire* |
MediaFire | https://www.mediafire.com/file/941xczxhn27qbby/GBWA_V12.25FF-By.SamMods-.apk/file |
*Unmaintained
Features
- Download content from 17+ social media platforms.
- Support for YouTube Search (
yts). - Asynchronous API calls using
httpx. - Simple and consistent interface across all services.
License
MIT License
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
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 btch_downloader-6.0.0.tar.gz.
File metadata
- Download URL: btch_downloader-6.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca75dfc7eaa707a48f36b69c91092727e57f36f8809974124afef85c223cc0a5
|
|
| MD5 |
8f77e6653b1b12312d0860b8ffb519d6
|
|
| BLAKE2b-256 |
aa189cf87274ab6c077f10cd6116618bce71c607effedebd55013a15470d3c5c
|
File details
Details for the file btch_downloader-6.0.0-py3-none-any.whl.
File metadata
- Download URL: btch_downloader-6.0.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb5a8f4d552b5a9ab15de5df77d2638c3c2ad1333a4a606bfc5b018c83e48cb0
|
|
| MD5 |
03ced9fe3c16c2899b7e569e9ec57ef4
|
|
| BLAKE2b-256 |
d475537d58d07f0616522b231e280cfb338920d9161006d81bb29225f6e1b3fe
|