A Python tool for migrating open browser tabs from one browser to another. This project is a work in progress and aims to simplify the process of copying tab URLs from one browser and storing them for use in another browser.
- Detect the number of open tabs in the current browser.
- Copy the URLs of all open tabs.
- Store the copied URLs in a text file for easy migration.
- Automate the opening of stored URLs in a different browser (coming soon).
The script uses the following steps:
- Tab Detection: Identifies the number of tabs open in the current browser window.
- URL Extraction: Iterates through the open tabs, copies their URLs, and appends them to a list.
- Storage: Saves the URLs to a
migrator.txt
file for migration purposes.
- Clone this repository:
git clone <repository-url> cd <repository-directory>
- Install the required dependencies:
pip install pyautogui pyperclip
- Run the script and switch to the browser you want to migrate tabs from:
python tab_migrator.py
- The script will automatically:
- Detect the number of open tabs.
- Copy each tab's URL.
- Save the URLs to a
migrator.txt
file.
- pyautogui: For simulating keyboard and mouse actions.
- pyperclip: For clipboard operations.
- time: For delays between automated actions.
Install dependencies using:
pip install pyautogui pyperclip
Contributions are welcome! Feel free to submit a pull request or open an issue if you have suggestions.