This application synchronizes pocket items with notion databases. It synchronizes the name, Url and tags to notion.
1. Go to pocket and create a new application. Enter the following settings:
Permissions: retrieve
Apllication-Type: Windows-Desktop
pip install requirements.txt
6. Open the link thats get printed to the terminal and authorize the application. When this is finsihed head back to the terminal and press enter.
8. Go to pipedream and create a new workflow. The trigger is "pocket new item added" and the reaction is python code.
9. Copy the code from pipedreeam_python.py into the python module and change the consumer and access key.
[...]
def get_tags():#extract tags from pocket api call because pipedreams call doesn't return tags because of detailType not being "complete"
consumer_key = "your-consumer-key"
access_token = "your-access-token"
[...]
10. Go to notion and click on the 3 dots in the upper right corner than connections und connect to pipedream.
11. The last step before deploying is to create four databases one for reddit, one for instagram, one for youtube and one for articles.
11.1 The Databases need to have 3 properties Title, Url and Tags. In the end they should look like this:
12. Copy the database Id's by clicking on "share link to database". The database id is the first number sequence. Copy these Ids in their fields.
[...]
def db_id_set(extracted_url):#set database id depending on type of saved content
if "insta" in extracted_url:
db_id = "your insta database-id"
elif "reddit" in extracted_url:
db_id = "your reddit database-id"
elif "youtube" in extracted_url:
db_id = "your youtube database-id"
else:
db_id = "your article database-id"
[...]
"https://www.notion.so/a1b023b304144b528159465200597a58?v=2974d30753f84a1bad901d34412844"
"a1b023b304144b528159465200597a58" is the Id.
Thats it now your Pocket is connected to notion.