Skip to main content

Downloader Sosial Media - Multiple Platform and Asynchronous API in Python

Project description

Sosial Media Downloader API for Python
Homepage Releases News

Sosmed

Multiple Site Provider and Asynchronous API in Python

from sosmed import Sosmed


sosmed = Sosmed(
    apiToken="YOUR_API_TOKEN",
    secret="YOUR_SECRET_TOKEN"
)

async def instagramDl():
    url = 'https://www.instagram.com/reel/DA2qTBspJPh/?igsh=ZjM4M2ZydWFjYzRt';
    res = await sosmed.instagram(url=url)
    path = await res.download()
    print(res.videoUrl)
    print(path)

async def tiktokDl():
    url = 'https://vt.tiktok.com/ZS2oQvs1s/';
    res = await sosmed.tiktok(url=url)
    path = await res.download()
    print(res.parse())
    print(path)

async def twitterDl():
    url = 'https://x.com/HumansNoContext/status/1848152497476493332?t=wncNBDv7iRegV_lXgvcl3Q&s=19';
    res = await sosmed.twitter(url=url)
    path = await res.download()
    print(res.mediaExtended[0].parse())
    print(path)

Installation

pip3 install sosmed

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

sosmed-1.0.1.tar.gz (11.0 kB view hashes)

Uploaded Source

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