Metadata-Version: 2.1
Name: sosmed
Version: 1.0.2
Summary: Downloader Sosial Media - Multiple Platform and Asynchronous API in Python
Home-page: https://github.com/AyiinXd/sosmed
Download-URL: https://github.com/AyiinXd/sosmed/releases/latest
Author: AyiinXd
Author-email: ayiin@gotgel.org
License: MIT
Project-URL: Tracker, https://github.com/AyiinXd/sosmed/issues
Project-URL: Community, https://t.me/AyiinProjects
Project-URL: Source, https://github.com/AyiinXd/sosmed
Keywords: api,scrapper,downloader,instagram,tiktok,twitter,youtube
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet
Classifier: Topic :: Communications
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: ~=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiofiles
Requires-Dist: aiohttp

<p align="center">
    <b>Sosial Media Downloader API for Python</b>
    <br>
    <a href="https://github.com/AyiinXd/sosmed">
        Homepage
    </a>
    •
    <a href="https://github.com/AyiinXd/sosmed/releases">
        Releases
    </a>
    •
    <a href="https://t.me/AyiinChannel">
        News
    </a>
</p>

## Sosmed

> Multiple Site Provider and Asynchronous API in Python

``` 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

``` bash
pip3 install sosmed
```


### License

[MIT License](https://github.com/AyiinXd/pyPorn/blob/master/LICENSE)
