TikTok icon indicating copy to clipboard operation
TikTok copied to clipboard

Exception: 'NoneType' object is not subscriptable

Open lxxiv opened this issue 4 years ago • 4 comments

lxxiv avatar Feb 10 '21 13:02 lxxiv

Also getting this.

remlap avatar May 31 '21 12:05 remlap

same

anridev24 avatar May 31 '21 19:05 anridev24

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.

mowoe avatar Jul 20 '21 09:07 mowoe

same

TruongKoiDKC avatar Sep 17 '21 06:09 TruongKoiDKC