krypton-byte / tiktok-downloader

Tiktok Downloader/Scraper using requests & bs4
https://tiktok-dl.id
GNU General Public License v3.0
303 stars 82 forks source link

JSONDecodeError #31

Open ne0ascorbinka opened 1 year ago

ne0ascorbinka commented 1 year ago

id: 7193908775684771114 Traceback (most recent call last): File "/root/.conda/envs/python39/lib/python3.9/site-packages/requests/models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "/root/.conda/envs/python39/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/root/.conda/envs/python39/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/root/.conda/envs/python39/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/bots/tt_test/test2.py", line 3, in d=VideoInfo.service('https://vm.tiktok.com/ZMYLWTKt6/') File "/root/.conda/envs/python39/lib/python3.9/site-packages/tiktok_downloader/scrapper.py", line 168, in service return cls.get_info(url).utils() File "/root/.conda/envs/python39/lib/python3.9/site-packages/tiktok_downloader/scrapper.py", line 30, in apply return initf(cls, regex(url)) File "/root/.conda/envs/python39/lib/python3.9/site-packages/tiktok_downloader/scrapper.py", line 149, in get_info return cls((requests.get( File "/root/.conda/envs/python39/lib/python3.9/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

smth like that