Skip to main content

Safari reading list

Project description

Safari reading list in Python

safarireadinglist is a Python package to load your Safari reading list into Python, and to export it, including thumbnail icons.

drawing

Sample results

drawing drawing

Installation

Install the safarireadinglist package in the root directory.

pip install -e .

Note: setuptools is the only requirement. For dev purposes, you may want to install the exact versions in pip install -r requirements.txt.

Final note: You need to give the terminal full disk access in the system preferences. See common errors below for instructions.

Usage

In the command line, execute:

export-safari-rl export

The reading list will be in reading_list.json. You may also provide other options: export-safari-rl --help.

You can also export the icons from the reading list:

export-safari-rl export-icons

The icons will be in the reading_list_icons folder.

See also the README in the examples folder for more examples.

Python package

The package is a Python package and can also be used as such. See example_python.py for an example.

Example of output format

See reading_list.json. The format is a list of dictionaries, where each dictionary conforms to the safarireadinglist.ReadingListItem dataclass.

Website

To generate the website from the website folder, run:

cd website
python website.py reading_list.json reading_list_icons

The output is in the website_out folder.

drawing

Known errors & solutions

If you are getting some error like this:

cp: /Users/XXX/Library/Safari/Bookmarks.plist: Operation not permitted

You need to give the terminal full disk access. Go to Settings/Security & Privacy/Full Disk Access. Navigate to /Applications/Utilities/ folder and choose the Terminal app. If you are launching the command from VS Code you will need to add this as well.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

safarireadinglist-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file safarireadinglist-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for safarireadinglist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c8a743e90df0d32366fc5f3bd99212fd13a5aaa73d5be6f5daafa3f7419239c
MD5 6340114e0547b0c294909f1776cd477c
BLAKE2b-256 b9bb2149fea97d1d5cd6c72d522c48dfae8dce7f8271b4dd94b2fd225169ef83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page