Alfred Sawaya
85d4e461b0
Set a maximum of refreshes when wall is empty
The previous behaviour was to try to delete 5000 posts, even if the wall
is empty. The drawback was that if you want to delete only 10 posts,
then you would wait 5000*5 secondes (~7 hours) before the end of the
script.
Now, you can set a number of tries before quitting. If the delete button
is not found consecutively during this number of times, then we break
the loop.
I also added an environment variable parser like argparse to ease the
future use of other env variables.
5 years ago
Wesley Kerfoot
7a92f80a2a
add option to pass path to chrome binary
5 years ago
Wesley Kerfoot
4b59fde84e
Remove comments option until work is completed
6 years ago
Wesley Kerfoot
01647262c3
Use cattrs to serialize conversations in archive
6 years ago
Wesley Kerfoot
b74dd81e0d
Support for filtering conversations by year
6 years ago
Wesley Kerfoot
fbc18058bd
Clean up new modules
6 years ago
Wesley Kerfoot
0cebd82af8
Remove unused imports
6 years ago
Wesley Kerfoot
f4ba552fc4
Fix missing imports
6 years ago
Wesley Kerfoot
8ac0351ab2
Cleanup & refactoring
6 years ago
Wesley Kerfoot
23ba502b65
Grab all URLs from page like page
6 years ago
Wesley Kerfoot
169321e9cc
Refactor settings
6 years ago
Wesley Kerfoot
88e4703889
Fix imports
6 years ago
Wesley Kerfoot
69313de811
Refactor settings
6 years ago
ConnorSkees
6884c12c40
Add docstring and fix hardcoded strings
6 years ago
ConnorSkees
c89f7a1d6c
Add basic logging
6 years ago
ConnorSkees
8bf8617c15
Refactor
6 years ago
Wesley Kerfoot
4401318b2a
Clarify archiving logic in setup
6 years ago
Wesley Kerfoot
1241d6e7e8
Fix bugs with logging and bump version
6 years ago
Wesley Kerfoot
056fd75aae
Add feature to disable logging
6 years ago
Wesley Kerfoot
99a30df3de
Remove stray import
6 years ago
Wesley Kerfoot
89a6c2de1d
Use relative imports to allow direct execution
6 years ago
Wesley Kerfoot
9bb624eaa5
Guard against invalid combos of options
6 years ago
Wesley Kerfoot
6bfd729125
Remove unnecessary parameter
6 years ago
Wesley Kerfoot
db015cc281
Add new `mode` parameter, work on unliking pages
6 years ago
Wesley Kerfoot
5c11163180
Integrate changes that allow selecting year
6 years ago
Joseph D. Marhee
6146103942
adds handling for 2fa code command-line argument
6 years ago
Tuan-Anh Hoang-Vu
b9e2ecee6e
Better support two-factor authentication.
6 years ago
wes
81fd9329f9
More refactoring into modules
6 years ago
wes
8cc9074934
Refactoring
6 years ago
wes
2c73a529b3
Start refactoring things into separate modules
6 years ago
ijustlovemath
c0dd1a1f0c
Improving the security of manual password entry
6 years ago
Spirit-act
4b60f72e09
Changed to preferences
6 years ago
Spirit-act
6420ae262b
Added password prompt
6 years ago
Michael Gecht
9f832e6fbd
Refactor selenium exceptions into constant
6 years ago
Michael Gecht
ab6450f33a
Add explicit exceptions
6 years ago
Michael Gecht
22e30f300d
Wrap selector logic in try..except statement
This catches all errors that are thrown, when any
`find_element_by_*` method fails for some reason.
If this happens, we just fall through and wait for
a page refresh and then try again.
6 years ago
ConnorSkees
0f9d1fcb9d
Minor refactoring and reformatting :)
6 years ago
ConnorSkees
a811761928
Remove --no-sandbox flag
6 years ago
ConnorSkees
5367f424f0
Add option for headless mode
update README with instructions on chromedriver
Minor refactor and reformatting
- Tighten whitespace
- Remove superfluous `assert` statement
Minor refactoring and reformatting
Fix missing whitespace between =
Update deletefb.py
Remove git stuff
6 years ago
Wesley Kerfoot
2dc953424d
Fix typo
6 years ago
Wesley Kerfoot
9f1d123dcd
Fixes #6 by adding a pause for 2FA
6 years ago
Wesley Kerfoot
64cf0ed78c
Add a few comments explaining some quirks
6 years ago
Wesley Kerfoot
8fcda848ab
Use driver.implicitly_wait instead of sleeping everywhere
6 years ago
Wesley Kerfoot
a87d154bf0
Try using WebDriverWait
6 years ago
Wesley Kerfoot
0780e637ec
Refactor into a proper package
6 years ago