Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/inwebo/browser-bookmarks-to-json

Convert browser's bookmarks HTML file to JSON
https://github.com/inwebo/browser-bookmarks-to-json

Last synced: about 2 months ago
JSON representation

Convert browser's bookmarks HTML file to JSON

Awesome Lists containing this project

README

        

# Convert browser's bookmarks HTML file to JSON

## Install project

### Composer
```bash
composer require inwebo/browser-bookmarks-to-json
```

### Git
```bash
git clone https://github.com/inwebo/browser-bookmarks-to-json.git
```

## Install dependencies
```bash
composer install
```

## Put your html files in `./input/` dir
Will parse all html files in input dir

## Execute command

```bash
php -f export.php export:bookmarks
# Alias
php -f export.php eb
```

## You Should have a json object in output : data.json

A serialized collection of Inwebo\Browser\Model\Bookmark models, see [Bookmark model](https://github.com/inwebo/browser-bookmarks-to-json/blob/master/Model/Bookmark.php)