git clone https://github.com/mooamel/lovetik.git
- lovetik is use:
- lovetik ( lovetik.com )
- Supporting Sync & Async.
- Thanks to @zaid505 cuz i'm get the idea for type.py file from him ( Source ).
- 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())