Changes from the original project:
- Requires Python 3.6+
- (new as of May 2022) Requires pyautogui
- Now the script notifies you when Chomedriver needs to be updated.
- Changed how the backup text file is made. It still updates the file
OneTab Backup (latest).txtevery time the script runs, but now a new backup fileOneTab Backup {date} {number_of_tabs}.txtwill also be created every time the script runs. This way, in case the script malfunctions or in case Chrome/OneTab crashes/updates and loses the current tab data, even if the script runs andOneTab Backup (latest).txtloses its data (by replacing its contents with a blank value), you'll have other saved backups to choose from.- If you want to change the backup folder, open
Chrome_Selenium.pyin a text editor or IDE and edit the variableBACKUP_PATH(line 14). - Currently the script keeps only the latest 30 backup files (the older ones get replaced by new ones). If you want to change this amount, open
utils.pyin a text editor or IDE and edit the variablefiles_to_keep(line 43).
- If you want to change the backup folder, open
- Changed most of the
os.path.join()toPath(after importing Path from pathlib). It's another thing to import, but it provides better readability, and Path objects are usually a better solution.- I intend to eventually replace everything I can from
ostoPath(but I'm not in a hurry).
- I intend to eventually replace everything I can from
The is Python automation script to backup your OneTab data
- Python
- Selenium
- Windows & TaskScheduler (Not sure how other OS do it)
I will work on this features when I feels like it and have time to do so
- [] Upload the backup file to your Google Drive
- [] User Input(Local/GoogleDrive)
Took me a lot of time to figure out OneTab data is stored in the Local Extension Settings folder