Skip to content

iamfitsum/arc-export-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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:

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:

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 project by 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! ⭐

License

This project is licensed under the MIT License.

About

Export pinned Arc Browser tabs for importing bookmarks into other browsers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages