Browse Source

Merge branch 'master' of github.com:weskerfoot/DeleteFB into refactor

pull/53/head
Wesley Kerfoot 5 years ago
parent
commit
d6bbb89164
  1. 2
      README.md
  2. 2
      deletefb/logging_conf.json
  3. 6
      deletefb/tools/common.py
  4. 7
      setup.py

2
README.md

@ -45,7 +45,7 @@ git+https://github.com/weskerfoot/DeleteFB.git`
everything. You may safely minimize the chrome window without breaking it.
## 2FA
* It is recommended that you disable Two-Factor Authentication tempoprarily
* It is recommended that you disable Two-Factor Authentication temporarily
while you are running the script, in order to get the best experience.
* If you run into issues with Facebook complaining about your browser,

2
deletefb/logging_conf.json

@ -27,7 +27,7 @@
"level": "INFO",
"class": "logging.handlers.WatchedFileHandler",
"formatter": "verbose",
"filename": "deletefb/deletefb.log",
"filename": "./deletefb.log",
"mode": "a",
"encoding": "utf-8"
}

6
deletefb/tools/common.py

@ -40,7 +40,11 @@ def logger(name):
Returns:
logging.Logger
"""
config_path = "deletefb/logging_conf.json"
# Make sure the path always points to the correct directory
config_path = os.path.dirname(
os.path.realpath(__file__)) + "/../logging_conf.json"
if not isfile(config_path): # called from file (deletefb.py)
os.chdir("..")
with open(config_path, "r", encoding="utf-8") as config_file:

7
setup.py

@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup(
name="delete-facebook-posts",
version="1.1.2",
version="1.1.4",
author="Wesley Kerfoot",
author_email="wes@wesk.tech",
description="A Selenium Script to Delete Facebook Posts",
@ -13,6 +13,11 @@ setuptools.setup(
long_description_content_type="text/markdown",
url="https://github.com/weskerfoot/DeleteFB",
packages=setuptools.find_packages(),
include_package_data=True,
package_data={
# If any package contains *.txt or *.rst files, include them:
'': ['*.json'],
},
install_requires = [
"selenium",
"selenium-requests",

Loading…
Cancel
Save