dobizz / TikTok

Download public videos on TikTok using Python with Selenium
MIT License
48 stars 24 forks source link

Exception: 'NoneType' object is not subscriptable #5

Open lxxiv opened 3 years ago

remlap commented 3 years ago

Also getting this.

anridev24 commented 3 years ago

same

mowoe commented 2 years ago

TikTok is constantly changing its webpage to prevent you from scraping it. The Problem right now seems to be a missing cookie. A quick workaround: change api.py line 99-100

        if not self.verifyFp:
            self.verifyFp = self.driver.get_cookie('s_v_web_id')['value']

to

        #if not self.verifyFp:
        #    self.verifyFp = self.driver.get_cookie('s_v_web_id')['value']

(Comment out these two lines.) Another Problem seems to be that tiktok doesnt like the Twitterbot User-Agent anymore. To circumvent this, you can either remove it entirely or just run the crawler until you get a different user agent.

TruongKoiDKC commented 2 years ago

same