Git Product home page Git Product logo

arc-export's Introduction

Arc Pinned Tabs to HTML Bookmarks Converter

Overview

This project provides a script for converting pinned tabs in the Arc Browser to 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 [email protected]:ivnvxd/arc-export.git
  2. Navigate to the project folder: cd arc-export

or download using curl:

curl -o main.py https://raw.githubusercontent.com/ivnvxd/arc-export/main/main.py

Usage

Run the main.py script from the command line:

python3 main.py

# or if there is an error:
python main.py

Troubleshooting

If you encounter any problems, manually copy the StorableSidebar.json file from the ~/Library/Application Support/Arc/ directory to the project's directory and run the script again.

How It Works

  1. Read JSON: Reads the StorableSidebar.json file from the Arc Browser's directory or the project's directory.
  2. Convert Data: Converts the JSON data into a hierarchical bookmarks dictionary.
  3. Generate HTML: Transforms the bookmarks dictionary into an HTML file.
  4. Write HTML: Saves the HTML file with a timestamp, allowing it to be imported into any web browser.

Contributions

Contributions are very welcome. Please submit a pull request or create an issue.

Support

Thank you for using this project! If you find it helpful and would like to support my work, kindly consider buying me a coffee. Your support is greatly appreciated!

Buy Me A Coffee

And do not forget to give the project a star if you like it! ⭐

License

This project is licensed under the MIT License.

arc-export's People

Contributors

ggalves avatar ivnvxd avatar kamildemocko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

arc-export's Issues

HTML output is empty

Running the script produces an empty HTML bookmark file.

% python3 main.py          
Reading JSON...
> Found StorableSidebar.json in current directory.
Getting spaces...
> Found 1 spaces.
Converting to bookmarks...
> Found 0 bookmarks.
Converting bookmarks to HTML...
> HTML converted.
Writing HTML...
> HTML written to arc_bookmarks_2023_12_05.html.
Done!

Size of the input file: 9265746 Dec 5 15:48 StorableSidebar.json.

I'm using the following version of Arc: Version 1.19.1 (43687)

[Bug] Traceback when trying to run main.py

╭─anthony@Anthonys-MacBook-Pro ~/Documents/arcexport
╰─$ curl -o main.py https://raw.githubusercontent.com/ivnvxd/arc-export/main/main.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5793  100  5793    0     0  15731      0 --:--:-- --:--:-- --:--:-- 15699
╭─anthony@Anthonys-MacBook-Pro ~/Documents/arcexport
╰─$ python3 main.py
Reading JSON...
> Found StorableSidebar.json in Library directory.
Getting spaces...
Traceback (most recent call last):
  File "/Users/anthony/Documents/arcexport/main.py", line 185, in <module>
    main()
  File "/Users/anthony/Documents/arcexport/main.py", line 8, in main
    html: str = convert_json_to_html(data)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/anthony/Documents/arcexport/main.py", line 51, in convert_json_to_html
    spaces: dict = get_spaces(json_data["sidebar"]["containers"][target]["spaces"])
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/anthony/Documents/arcexport/main.py", line 80, in get_spaces
    spaces_names["pinned"][containers[i + 1]]: str = title
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: ‘dict'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.