![]() # You can add in a file and import from thereĬomment_page( driver, urls, random_comment()) ![]() randint( 0, len( messages))ĭef check_exists_by_xpath( driver, xpath): Return comment_page( driver, urls, random_comment()) find_element_by_xpath( send_keys( comment)ĭriver. If check_exists_by_xpath( driver, comment_page( driver, urls, random_comment()) execute_script( "window.scrollTo(0, 500) ") If not check_exists_by_xpath( driver, comment_page( driver, urls, random_comment())ĭriver. click()ĭef comment_page( driver, urls, comment): exceptions import NoSuchElementExceptionĭriver. support import expected_conditions as ECįrom selenium. ![]() # Python bot for comment a list of urls in YouTubeįrom selenium.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |