Pocket-to-Bookmarks HTML Converter
This Python package converts a Pocket export HTML file to a standard bookmarks file format. It extracts links from your Pocket export and creates a new HTML file compatible with most web browsers' bookmark import features.
Features
- Parses Pocket export HTML files
- Extracts link information including title, URL, and time added
- Generates a new HTML file in standard bookmarks format
- Preserves the original "time added" information for each bookmark
- Provides informative logging throughout the conversion process
Requirements
- Python 3.9+
- BeautifulSoup4
Installation
You can install the package using pip:
pip install pocket-to-bookmarks-html
Usage
After installation, you can run the script from the command line using:
pocket2bookmarks input_pocket_export.html output_bookmarks.html
Replace input_pocket_export.html with the path to your Pocket export file, and output_bookmarks.html with your desired output file name.
How It Works
- The script parses the Pocket export HTML file using BeautifulSoup.
- It extracts the title, URL, and time added for each link.
- The extracted information is then formatted into a standard bookmarks HTML file.
- The resulting file can be imported into most web browsers as bookmarks.
Error Handling
- The script includes error handling for file reading and writing operations.
- Informative error messages are logged in case of any issues during the conversion process.
Logging
The script uses Python's logging module to provide information about the conversion process, including:
- The number of links successfully converted
- Any errors encountered during file operations
- A warning if no links were found or processed
Development
To set up the development environment:
-
Clone the repository:
git clone https://github.com/davidpoblador/pocket-to-bookmarks-html.git cd pocket-to-bookmarks-html -
Install development dependencies:
pip install uv uv sync
Contributing
Contributions, issues, and feature requests are welcome. Feel free to check the issues page if you want to contribute.
License
Author
David Poblador i Garcia
For more information or support, please open an issue in the repository.
Metadata
Release files for pocket-to-bookmarks-html 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pocket_to_bookmarks_html-0.2.1.tar.gz | 4.2 kB | Without provenance | Details for pocket_to_bookmarks_html-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pocket_to_bookmarks_html-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pocket_to_bookmarks_html-0.2.1-py3-none-any.whl |
Total release size: 9.1 kB
Release files / pocket_to_bookmarks_html-0.2.1.tar.gz
| Download URL | pocket_to_bookmarks_html-0.2.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a804ee42482e363d272a8a80baeb09911fbd7849f9ddef10dd0c9e9813201200
|
|
BLAKE2b-256 checksum How to use checksums |
153d09c134ebc8a8109558db282402ca212c2b69fc9c68dd30a71b3138018df7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / pocket_to_bookmarks_html-0.2.1-py3-none-any.whl
| Download URL | pocket_to_bookmarks_html-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0d6c6d4c0965dcafdec54f1b1055268859bcae2e9e41ba4a13aae1046920b61
|
|
BLAKE2b-256 checksum How to use checksums |
c75a87e0d1f3e5bcaf34833be62fcf2de5deb6153926ebf60577c6c564daff7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for pocket-to-bookmarks-html 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.