/lovetik

Primary LanguagePython

Install:

git clone https://github.com/mooamel/lovetik.git

About this project:

How to use?

  • Here an example to use it:
from lovetik import client

cli = client()
url = 'https://vm.tiktok.com/ZMMj9fmyS/'

info    =  cli.get(url) # Result : info about video as :  Dict {}
download = cli.save(link = info.mp3, type = 'mp3', name = 'audio') # Result : info about downloading status as  :   Dict {}.  NOTE: u can use save method with (cover , avater , mp3 , mp4 , mp4_rights). ex : info.avatar
  • Here an async example:
from lovetik import async_client
import asyncio

cli = async_client()
url = 'https://vm.tiktok.com/ZMMj9fmyS/'

async def main():
    info = await cli.get(url) # to get the info about vid
    print(
        await cli.save(info.cover,'jpg') # to save the cover of vid
    )

asyncio.run(main())