PyPocket
A Python Package for GetPocket (https://getpocket.com)
Installation
pip install pypocket
Library Requirements
- requests (
pip install requests) - dominate (
pip install dominate)
Prerequisite: Obtain Your Consumer Key & Access Token
In order to use PyPocket, you will need consumer_key and access_token for your Pocket. For the consumer_key, you can follow Step 1 of Pocket Authentication API Documentation to obtain your consumer_key.
For obtaining your access_token, you can either follow the pocket documentation (above link) to get your access_token,
or use the Auth class available in this library for your convenience as below.
from pypocket.auth import Auth
auth = Auth(consumer_key="your_consumer_key")
# The following will automatically obtain a request_token and ask you to authorize it.
auth.authorize_request_token_browser()
The auth.authorize_request_token_browser() will open a webpage to getpocket.com website asking you to authorize the token.
Once, you authorize it. Then you can get your access token by running the following:
access_token = auth.get_access_token()
Usage
from pypocket import Pocket
p = Pocket(
consumer_key="your_consumer_key",
access_token="your_token",
html_filename="report"
)
p.to_html(num_post=10)
Check the development roadmap for this project here
New features in the pipeline
- Retrieve pocket contents according to given tags
- Modify the pocket contents properties
Metadata
Release files for pypocket 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pypocket-0.2.0.tar.gz | 7.9 kB | Without provenance | Details for pypocket-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypocket-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pypocket-0.2.0-py3-none-any.whl |
Total release size: 17.1 kB
Release files / pypocket-0.2.0.tar.gz
| Download URL | pypocket-0.2.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a74fdb70bd5ccdf636fec973274784a16dc717b6e50e18527a8e029823209ad
|
|
BLAKE2b-256 checksum How to use checksums |
2b257e9c5ba4f92bae72f30cb0aa038d11f0571a34d274dfef8dce31cd3bde9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.6 Linux/5.4.72-microsoft-standard-WSL2
|
Release files / pypocket-0.2.0-py3-none-any.whl
| Download URL | pypocket-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5cb343b3703848e2669e9ee7386b296d2b37c1b83f56df7e0c6928df9f520516
|
|
BLAKE2b-256 checksum How to use checksums |
0ce731faaa24f5fdb4a8e130b1c12133cc1a4df9862347bf9012eda11e2b7652
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.6 Linux/5.4.72-microsoft-standard-WSL2
|
Security for pypocket 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.