question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`TimeoutException: Message:

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
dfreeloncommented, Dec 17, 2022

@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.

0reactions
dfreeloncommented, Dec 17, 2022

@christinapwalker Thanks for the code. It’s pretty simple to pull comments from multiple videos using the existing save_visible_comments function, e.g.:

tiktok_videos = ['https://www.tiktok.com/@tiktok/video/7106594312292453675?is_copy_url=1&is_from_webapp=v1',
                 'https://www.tiktok.com/@tiktok/video/7011536772089924869?is_copy_url=1&is_from_webapp=v1']
for v in tiktok_videos:
    pyk.save_visible_comments(v,'tiktok_comments.csv')

But the error handling code for videos with no comments is important so I will incorporate that into the next version and credit you as I have other contributors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TimeoutException: Message - python - Stack Overflow
Probably because your timeout is too short (3 seconds) so before the page is fully loaded, it reaches timeout threshold.
Read more >
TimeOutException in Selenium - Educative.io
In Selenium, TimeOut exception occurs when a command takes longer than the wait time to avoid the ElementNotVisible Exception.
Read more >
selenium.common.exceptions.TimeoutException()
_expected_condition_find_first_element, elements, timeout) except TimeoutException as exception: msg = 'None of the page elements has been found after %s ...
Read more >
Message: Timed out waiting for page load. - Google Groups
Each time i visit a page i am getting an error from webdriver. How to solve this? message=TimeoutException: Message: Timed out waiting for...
Read more >
selenium.webdriver.support.wait — Selenium 4.7 documentation
:param method: callable(WebDriver) :param message: optional message for :exc:`TimeoutException` :returns: the result of the last call to `method` :raises: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found