Browse Source

Refactoring

pull/23/head
wes 5 years ago
parent
commit
8cc9074934
  1. 11
      deletefb/deletefb.py
  2. 7
      deletefb/tools/wall.py

11
deletefb/deletefb.py

@ -3,16 +3,7 @@
import argparse
import time
import getpass
import tools.wall as wall
from seleniumrequests import Chrome
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException
MAX_POSTS = 5000
SELENIUM_EXCEPTIONS = (NoSuchElementException, StaleElementReferenceException)
import deletefb.tools.wall as wall
def run_delete():
parser = argparse.ArgumentParser()

7
deletefb/tools/wall.py

@ -1,3 +1,10 @@
from selenium.webdriver.chrome.options import Options
from seleniumrequests import Chrome
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException
MAX_POSTS = 5000
SELENIUM_EXCEPTIONS = (NoSuchElementException, StaleElementReferenceException)
def delete_posts(user_email_address,
user_password,

Loading…
Cancel
Save