https://github.com/iamfitsum/arc-export-windows
Export pinned Arc Browser tabs for importing bookmarks into other browsers.
https://github.com/iamfitsum/arc-export-windows
arc-browser bookmarks html json python windows
Last synced: 8 months ago
JSON representation
Export pinned Arc Browser tabs for importing bookmarks into other browsers.
- Host: GitHub
- URL: https://github.com/iamfitsum/arc-export-windows
- Owner: iamfitsum
- License: mit
- Created: 2024-06-16T22:38:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-04T16:34:32.000Z (over 1 year ago)
- Last Synced: 2025-01-04T17:28:34.503Z (over 1 year ago)
- Topics: arc-browser, bookmarks, html, json, python, windows
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arc Pinned Tabs to HTML Bookmarks Converter
## Overview
This project provides a script for converting pinned tabs in the **Arc Browser** to a standard HTML bookmarks file. These bookmarks can then be imported into any web browser.
This addresses the lack of a pinned tabs export feature in Arc Browser.
## Requirements
- Python 3.x
- Arc Browser installed
## Installation
1. Clone the repository: `git clone https://github.com/iamfitsum/arc-export-windows.git`
2. Navigate to the project folder: `cd arc-export-windows`
or download using `curl`:
```sh
curl -o main.py https://raw.githubusercontent.com/iamfitsum/arc-export-windows/main/main.py
```
## Usage
### Finding `StorableSidebar.json` in Windows
1. Enable "Show hidden files" by clicking **View** on the top navigation bar of the File Explorer, then clicking on **Show** and checking the **Hidden items**.
2. Navigate to `C:\Users\{UserName}\AppData\Local\Packages\TheBrowserCompany.Arc_ttt1ap7aakyb4\LocalCache\Local\Arc`.
3. Copy the `StorableSidebar.json` file to the directory where you placed `main.py` (i.e., the cloned project folder or the folder where you downloaded `main.py`).
Then, run the `main.py` script from the command line:
```sh
python3 main.py
# or if there is an error:
python main.py
```
## How It Works
1. **Read JSON**: Reads the `StorableSidebar.json` file and fixes any malformed escaping
2. **Detect Container**: Automatically finds the container with the most bookmark data
3. **Convert Data**: Converts the JSON data into a hierarchical bookmarks dictionary
4. **Generate HTML**: Transforms the bookmarks dictionary into an HTML file
5. **Write HTML**: Saves the HTML file with a timestamp, allowing it to be imported into any web browser
## Recent Improvements
- **Enhanced JSON parsing**: Handles malformed URL escaping that can occur in Arc exports
- **Smart container detection**: Automatically finds the correct data container instead of assuming a specific structure
- **Better error handling**: Graceful handling of various Arc export formats and structures
- **Improved documentation**: Clear function documentation and meaningful error messages
## Acknowledgments
This project is based on the [arc-export](https://github.com/ivnvxd/arc-export) project by [ivnvxd](https://github.com/ivnvxd). Thank you for the original work!
## Contributions
Contributions are very welcome. Please submit a pull request or create an issue.
And do not forget to give the project a star if you like it! :star:
## License
This project is licensed under the MIT License.