Skip to content

use this python script to add your site url into pocket with pocket api in python

Notifications You must be signed in to change notification settings

slim-python/pocket-api-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

This python script will let you add urls to your pocket account

First, you have to Create your consumer key from getpocket's developer console. To get the access token, you have to authorize the app on your own account. There are tools on the web that can automate this for you such as fxneumann's OneClickPocket

import requests

from requests.structures import CaseInsensitiveDict

  

url = "https://getpocket.com/v3/add"


headers = CaseInsensitiveDict()

headers["Content-Type"] = "application/json"

  

data = """

[

{

#submit your post here in the url field
"url": "https://example.com/post/",

"consumer_key":"Your consumer key",

"access_token":"your acess token"

}

]

"""

  
  

resp = requests.post(url, headers=headers, data=data)

  

print(resp.status_code)

About

use this python script to add your site url into pocket with pocket api in python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published