An open API service indexing awesome lists of open source software.

https://github.com/llppr/flat_bookmarks

The `flatten_bookmarks.py` script extracts all bookmarks from pesky nested folders in an HTML bookmarks file and consolidates them into a single folder.
https://github.com/llppr/flat_bookmarks

automation bookmarks-management browser-tools cli flattener html open-source python-script vscode

Last synced: about 2 months ago
JSON representation

The `flatten_bookmarks.py` script extracts all bookmarks from pesky nested folders in an HTML bookmarks file and consolidates them into a single folder.

Awesome Lists containing this project

README

          

# Bookmarksâ™­

### Flat Bookmarks
This repository contains scripts and tools for managing and flattening browser bookmarks.

## Flatten Bookmarks Script

### Description
The `flatten_bookmarks.py` script extracts all bookmarks from nested folders in an HTML bookmarks file and consolidates them into a single folder up to a specified directory level.

### Usage

1. Clone the repository:
```sh
git clone https://github.com/LLPPR/bookmarks-management.git
cd bookmarks-management
```

2. Run the script:
```sh
python flatten_bookmarks.py
```

3. Follow the prompts to provide the path to your bookmarks HTML file and the number of directory levels to flatten to. The flattened bookmarks will be saved to `flattened_bookmarks.html`.

### Requirements
- Python 3.x

### License
This project is licensed under the Unlicense.