This NPM package helps you to export Pocket articles to Markdown format using Postlight Parser. I personally use this for importing to Obsidian.
Output example can be found here.
- Clone this repository
git clone https://github.com/mufidu/pocket-to-markdown.git
- Install the package dependencies
npm install
-
Download your Pocket articles as HTML from here.
-
Replace the
ril_export.html
in this folder with the downloaded file. -
Run the script
npm start
- Download the remote images (optional)
python download_images.py
p.s. This will make the folder size much bigger if there are a lot of images. Update: Use this package to download the images.
By default, the output folder is articles
. You can change it in index.js
file.
If you want to export a single article, you can use the singleWeb.js
. Example:
node singleWeb.js https://mufidu.com/ansosmed/