Skip to main content

Social Media Downloader for Python

Project description

btch-downloader

Pylint

A lightweight Python library for downloading videos, images, and audio from Instagram, TikTok, YouTube, Capcut, Pinterest, Twitter, X, Google Drive, MediaFire, Douyin, SnackVideo, Xiaohongshu, Xiaohongshu Profile, Cocofun, Spotify, Youtube Search, SoundCloud, Threads, Kuaishou and Facebook.

Installation

Python Installation

Install the library using pip:

pip install btch-downloader

Prerequisites

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 Instagram https://www.instagram.com/reel/DKPtUL_S9Nh/?igsh=MTE1dTVkb2E4NTFmcw==
fbdown Facebook 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 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
xiaohongshu_profile Xiaohongshu Profile https://www.xiaohongshu.com/user/profile/abc123
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 19+ 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

btch_downloader-6.0.37.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

btch_downloader-6.0.37-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file btch_downloader-6.0.37.tar.gz.

File metadata

  • Download URL: btch_downloader-6.0.37.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for btch_downloader-6.0.37.tar.gz
Algorithm Hash digest
SHA256 2b53eb67de5959a03207c6471d8fa0be72ed58eeca489a3b1b7c233b7047b53a
MD5 39931f9b0189cc6da39b0f1ece91adfb
BLAKE2b-256 e0cdbde02f65a80b4960b6f3a97c616054e3001842850f2a0e30b2a5d1df0a2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for btch_downloader-6.0.37.tar.gz:

Publisher: python-publish.yml on hostinger-bot/btch-downloader-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file btch_downloader-6.0.37-py3-none-any.whl.

File metadata

File hashes

Hashes for btch_downloader-6.0.37-py3-none-any.whl
Algorithm Hash digest
SHA256 7a3a5c592fdd1581605f476f3a14cd6fb0bb0d4bf0260978331f4d569917b422
MD5 e26e05f788589ddcafd8b560b34db515
BLAKE2b-256 118736bade0a9b8a9b5cca6d04ba02f37b7ca194394b197f231c04bed383e524

See more details on using hashes here.

Provenance

The following attestation bundles were made for btch_downloader-6.0.37-py3-none-any.whl:

Publisher: python-publish.yml on hostinger-bot/btch-downloader-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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