tapanpandita / pocket Goto Github PK
View Code? Open in Web Editor NEWA python wrapper for the pocket api.
License: BSD 3-Clause "New" or "Revised" License
A python wrapper for the pocket api.
License: BSD 3-Clause "New" or "Revised" License
I'm trying to use this to interface with Pocket on a Raspberry Pi but when I try to do the initial authorisation I get the error 'There was a problem trying to connect this app to Pocket. Please try again.' when I go to the authorisation URL.
Any idea what's causing this?
I'm not sure if I missed something but I couldn't find a way to retrieve users username on this API wrapper. Given that it is available in the same response as get_access_token
i'd suggest to change that method name to get_credentials
to let developers get the username as well as the access_token.
Example:
credentials = Pocket.get_credentials(
consumer_key=settings.POCKET_CONSUMER_KEY,
code=request_token
)
access_token = credentials['access_token']
username = credentials['username']
would be awesome to include a in-built cli to test out the repo.
Hi,
With the actual api and Python 2.7.x I have no problem to use pocket_instance.add() like I did here
But the same code with Python 3.4.x give me :
File "/home/foxmask/.pyenv/versions/django-th-340/django_th/th_pocket/my_pocket.py", line 82, in save_data
url=data['link'], title=title, tags=(trigger.tag.lower()))
File "/home/foxmask/.pyenv/versions/django-th-340/lib/python3.4/site-packages/pocket.py", line 46, in wrapped
arg_names = list(fn.func_code.co_varnames)
AttributeError: 'function' object has no attribute 'func_code'
I don't know if this is still being maintained but if it is could you update to the new API v3
if I call the get() method I don't get the tag attribute in the list elements, as it is instead written in the official API documentation.
if I call the get() method with a tag parameter I get again the full list of articles, not the tag-filtered one
if I call the tags_add() method, no tag is added to the selected item
So, it seems like a problem with tags implementation, anyone experiencing this?
I am a beginner. There is a problem I found.
Best regards
Traceback (most recent call last):
File "./pocket_test.py", line 12, in
main()
File "./pocket_test.py", line 8, in main
pocket_instance = pocket.Pocket("name", "password", "consumer_key")
File "/usr/lib/python2.7/site-packages/pocket.py", line 44, in init
'apikey': self.api_key,
AttributeError: 'Pocket' object has no attribute 'api_key'
PS: Is api_key is the consumer_key?
Thank you for this, really useful - unfortunately it doesn’t seem to be pulling back the tags for articles?
On line 154:
https://github.com/tapanpandita/pocket/blob/master/pocket.py#L154
My app was braking after the request, I added return
to this line in a local fork and it started working again. Can you confirm it this is a bug or am I doing something wrong?
Or expose the request in some way so that the client can set the timeout themselves
I was wondering if the requirements.txt
is up-to-date?
Are you sure that the modules distribute
and nose
are required?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.