Safari Tabs Saver is a Python script written to allow Safari users to create backups of their currently open tabs. Due to the lack of accessible or free Safari tab manager extensions, this script aims to better the lives of tab hoarders.
These instructions will get you a copy of the project up and running on your local machine for your usage.
To run this script, you simply need Python and this repository on your local machine. You can get a copy of this repository by running the following command in your command line.
With SSH
git clone git@github.com:zhuhanming/safari-tabs-saver.git
With HTTPS
git clone https://github.com/zhuhanming/safari-tabs-saver.git
To install the dependencies required for this script, simply navigate into the directory you just cloned and run the following command in your command line. You may also choose to start a Python virtual environment before running the command.
pip install -r requirements.txt
Simply run the following command:
python safari-tabs-saver.py
Your backups are saved into the backups folder. Simply navigate to the backups folder and open the latest exported html file.
You can open saved tabs one by one by clicking the saved tab title, or open the entire window in one go by click the bolded text at the end of each window's tabs.
- Python - Language used
- safari-open-pages.py - Fetches open tabs in Safari
- Normalize.css - Normalises view in exported HTML file
- Fork it (https://github.com/zhuhanming/safari-tabs-saver/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -m 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
- Zhu Hanming - Extended aleks-mariusz's original code - zhuhanming (see Acknowledgements below)
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Original script to fetch open tabs in Safari by aleks-mariusz can be found here