`TimeoutException: Message:
See original GitHub issueHi, 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:
- Created 9 months ago
- Comments:20 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@christinapwalker One more thing: I found that code like this:
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.@christinapwalker Thanks for the code. It’s pretty simple to pull comments from multiple videos using the existing
save_visible_comments
function, e.g.: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.