Browse Source

Refactoring

pull/23/head
wes 6 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 argparse
import time import time
import getpass import getpass
import deletefb.tools.wall as wall
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)
def run_delete(): def run_delete():
parser = argparse.ArgumentParser() 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, def delete_posts(user_email_address,
user_password, user_password,

Loading…
Cancel
Save