You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
513 B
15 lines
513 B
from .archive import archiver
|
|
from ..types import Comment
|
|
from .common import SELENIUM_EXCEPTIONS, logger, click_button
|
|
from selenium.webdriver.common.by import By
|
|
from selenium.webdriver.support import expected_conditions as EC
|
|
from selenium.webdriver.support.ui import WebDriverWait
|
|
|
|
LOG = logger(__name__)
|
|
|
|
def delete_comments(driver, profile_url):
|
|
"""
|
|
Remove all comments on posts
|
|
"""
|
|
|
|
driver.get("{0}/allactivity?privacy_source=activity_log&category_key=commentscluster".format(profile_url))
|
|
|