diff --git a/README.md b/README.md index 11e6c80..481b5be 100644 --- a/README.md +++ b/README.md @@ -18,107 +18,156 @@ > python3 -m pip install git+https://github.com/krypton-byte/tiktok-downloader ``` - +>>> from tiktok_downloader import info_post +>>> info_post('https://vt.tiktok.com/xxxxxx/') +``` + # Command line - - -# Run as web +$ python3 -m tiktok_downloader --url https://vt.tiktok.com/lorem --snaptik --json +``` + + + +
Run as web ```bash $ python3 -m tiktok_downloader --host=0.0.0.0 --port=8000 --server + * Serving Flask app 'tiktok_downloader.server' (lazy loading) + * Environment: production + WARNING: This is a development server. Do not use it in a production deployment. + Use a production WSGI server instead. + * Debug mode: off + * Running on http://127.0.0.1:8000 (Press CTRL+C to quit) ``` +
+ ## Deploy Heroku [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/krypton-byte/tiktok-downloader/tree/master) ## Preview @@ -139,9 +188,10 @@ http://127.0.0.1:8000/snaptik?url=https://vm.tiktok.com/xxxxxxxx/&type=embed | Snaptik | /snaptik | ✓ | Tikmate | /tikmate |✓ | MusicalDown | /mdown|✓ -| ssstik | /ssstik | ✓ +| ssstik | /ssstik | x | ttdownloader | /ttdownloader | ✓ | tikdown | /tikdown | ✓ +| tiktok | /tiktok | ✓ # Donasi

diff --git a/tiktok_downloader/utils.py b/tiktok_downloader/utils.py index be58836..2c48e09 100644 --- a/tiktok_downloader/utils.py +++ b/tiktok_downloader/utils.py @@ -13,6 +13,10 @@ def __init__(self): pass def f(self, *arg, **kwarg): return None + def __enter__(self): + return self + def __exit__(self, type, val, trace): + return False def __getattr__(self, name): return self.f