A python script to transfer all your Pocket links to a database in Notion.
Explore the docs
·
File issues and feature requests here
- Table of Contents
- About The Project
- Getting Started
- Usage
- Roadmap
- Contributing
- License
- Contact
- Acknowledgements
A python script to copy all your Pocket saves to a database in Notion. Current iteration is based off the HTML export option provided by the folks at Pocket.
Intended for
- Those who are looking to transfer their reading lists from Pocket to Notion.
- Those who want to keep track and analyze what they read.
To get a local copy up and running follow these simple steps.
- A Pocket account to retreive your saved content from.
- A Notion account to store your links.
- Python 3 on your system to run the code.
- Clone this repository.
git clone https://github.com/paperboi/PickPocket.git
- Navigate to the directory and install the pre-requisite packages using
pip install -r requirements.txt
- Export your Pocket saves from here.
- Duplicate this database template to your Notion workspace.
- Since this code requires access of non-public pages, an authentication token from your Notion page is required. This token is stored in the
token_v2
cookie. This can be found in the Storage tab of your browser's developer tools.- For Chrome: Open Developer Tools (Menu > Other tools > Developer Tools), navigate to Application tab and go to Storage\Cookies to find the token.
- Store the path to your HTML file, the address to your database and the
token_v2
value asPATH_POCKET_FILE
,NOTION_TABLE_ID
andNOTION_TOKEN
respectively in a.env
file in the same directory you have cloned this repository to. - To execute the script, navigate to the directory and run
python pocket2notion.py
See the open issues for a list of proposed features (and known issues).
Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Jeffrey Jacob - @DullBlackWall - [email protected]
Project Link: https://github.com/paperboi/PickPocket
- K.P. Govind for clearing my doubts every step of the way.
- Jamie Alexandre for the powerful notion-py API.