pyktok: `TimeoutException: Message:

Hi, there, sorry for bothering you again. when I tried to run the code below. it reports an error which is associated with TimeoutException: pyk.save_visible_comments( 'https://www.tiktok.com/@tiktok/video/7011536772089924869?is_copy_url=1&is_from_webapp=v1', browser='firefox') I parsed the track below TimeoutException: Message: Stacktrace: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:182:5 NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:394:5 element.find/</<@chrome://remote/content/marionette/element.sys.mjs:280:16

Hoping you could point out a direction for solving this problem.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (11 by maintainers)

Most upvoted comments

@christinapwalker One more thing: I found that code like this:

dataframe = dataframe.drop_duplicates(subset='comment_id')

was insufficient to deduplicate my dataframes, as the resulting data still contained duplicate comments. Apparently Pandas sometimes has difficulty deduplicating columns full of long integers. I ended up having to convert the comment_id field to string format first for it to work. YMMV but it’s a subtle problem and worth checking out if you’re planning on using this for research.