{"id":13478776,"url":"https://github.com/nlbao/pocket_stats","last_synced_at":"2025-12-14T09:03:45.276Z","repository":{"id":40957005,"uuid":"263720099","full_name":"nlbao/pocket_stats","owner":"nlbao","description":"A tool to analyze your Pocket reading list.","archived":false,"fork":false,"pushed_at":"2022-12-08T11:52:39.000Z","size":2060,"stargazers_count":14,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T19:15:54.719Z","etag":null,"topics":["dash","data-visualization","pocket","python","python3","reading-list","statistics","webapp"],"latest_commit_sha":null,"homepage":"https://pocket-stats.nlbao.page","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlbao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"nlbao"}},"created_at":"2020-05-13T19:07:11.000Z","updated_at":"2025-10-27T11:07:22.000Z","dependencies_parsed_at":"2023-01-25T04:05:11.163Z","dependency_job_id":null,"html_url":"https://github.com/nlbao/pocket_stats","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nlbao/pocket_stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlbao%2Fpocket_stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlbao%2Fpocket_stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlbao%2Fpocket_stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlbao%2Fpocket_stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlbao","download_url":"https://codeload.github.com/nlbao/pocket_stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlbao%2Fpocket_stats/sbom","scorecard":{"id":690500,"data":{"date":"2025-08-11","repo":{"name":"github.com/nlbao/pocket_stats","commit":"dfd106903633633e55015b454129e8f8e7959c9e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/release_dev.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_dev.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/release_dev.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_dev.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/release_dev.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release_dev.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/nlbao/pocket_stats/release_dev.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/build.yml:25","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"38 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2024-35 / GHSA-547x-748v-vp6p","Warn: Project is vulnerable to: PYSEC-2023-62 / GHSA-m2qf-hxjv-5gpq","Warn: Project is vulnerable to: PYSEC-2022-42991 / GHSA-v3c5-jqr6-7qm8","Warn: Project is vulnerable to: GHSA-hc5x-x2vx-497g","Warn: Project is vulnerable to: GHSA-w3h3-4rj7-4ph4","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2022-288 / GHSA-6hrg-qmvc-2xh8","Warn: Project is vulnerable to: PYSEC-2021-356 / GHSA-2ww3-fxvq-293j","Warn: Project is vulnerable to: PYSEC-2024-167 / GHSA-cgvx-9447-vcch","Warn: Project is vulnerable to: PYSEC-2021-859 / GHSA-f8m6-h2c7-8h9x","Warn: Project is vulnerable to: PYSEC-2022-5 / GHSA-rqjh-jp2r-59cj","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2021-108 / GHSA-q2q7-5pp4-w6pg","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-2g68-c3qc-8985","Warn: Project is vulnerable to: GHSA-f9vj-2wh5-fj8j","Warn: Project is vulnerable to: PYSEC-2023-221 / GHSA-hrfv-mqp8-q5rw","Warn: Project is vulnerable to: PYSEC-2023-57 / GHSA-px8h-6qxv-m22q","Warn: Project is vulnerable to: GHSA-q34m-jh98-gwm2","Warn: Project is vulnerable to: PYSEC-2023-58 / GHSA-xg9f-g7g7-2323","Warn: Project is vulnerable to: PYSEC-2022-203","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T02:12:15.355Z","repository_id":40957005,"created_at":"2025-08-22T02:12:15.355Z","updated_at":"2025-08-22T02:12:15.355Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27724139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dash","data-visualization","pocket","python","python3","reading-list","statistics","webapp"],"created_at":"2024-07-31T16:02:02.719Z","updated_at":"2025-12-14T09:03:45.254Z","avatar_url":"https://github.com/nlbao.png","language":"Python","readme":"[![PyPI version](https://badge.fury.io/py/pocket-stats.svg)](https://badge.fury.io/py/pocket-stats)\n![build](https://github.com/nlbao/pocket_stats/workflows/build/badge.svg)\n[![codecov](https://codecov.io/gh/nlbao/pocket_stats/branch/master/graph/badge.svg)](https://codecov.io/gh/nlbao/pocket_stats)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/nlbao/pocket_stats.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/nlbao/pocket_stats/alerts/)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/nlbao/pocket_stats.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/nlbao/pocket_stats/context:python)\n\n# Pocket Stats\n\nA tool to analyze your [Pocket](https://app.getpocket.com/) reading list.\n\nDeployed at https://pocket-stats.nlbao.page .\n\n- [Pocket Stats](#pocket-stats)\n  - [Features](#features)\n    - [Word Cloud](#word-cloud)\n    - [Article Count timeseries](#article-count-timeseries)\n    - [Word Count distribution](#word-count-distribution)\n    - [Reading Speed \u0026 Reading Time](#reading-speed--reading-time)\n    - [Top Domains](#top-domains)\n    - [Language \u0026 Favorite](#language--favorite)\n  - [Installation](#installation)\n  - [Run web app locally](#run-web-app-locally)\n  - [Data querying](#data-querying)\n  - [Testing](#testing)\n  - [Deployment](#deployment)\n  - [Contribute](#contribute)\n  - [Authors](#authors)\n  - [License](#license)\n  - [Acknowledgments](#acknowledgments)\n\n\n## Features\n### Word Cloud\n![word_cloud](https://user-images.githubusercontent.com/4289177/87027187-cca22180-c1aa-11ea-89cb-ae1b91493934.png)\n\n### Article Count timeseries\n![article_count](https://user-images.githubusercontent.com/4289177/87027476-38848a00-c1ab-11ea-9115-925dc0660815.png)\n\n### Word Count distribution\nStacked histograms\n![word_count](https://user-images.githubusercontent.com/4289177/87027494-3de1d480-c1ab-11ea-9bfd-ded18cb4025b.png)\n\n### Reading Speed \u0026 Reading Time\nStacked histograms\n![reading_time](https://user-images.githubusercontent.com/4289177/87027500-3fab9800-c1ab-11ea-8a57-be4cb7eaf168.png)\n\n### Top Domains\nStacked bar charts.\n![top_domains](https://user-images.githubusercontent.com/4289177/87027511-420df200-c1ab-11ea-85c9-08f08f546caf.png)\n\n### Language \u0026 Favorite\n![language_favorite](https://user-images.githubusercontent.com/4289177/87027522-463a0f80-c1ab-11ea-8436-352adc72266b.png)\n\n\n## Installation\n\nPrerequisites:\n* A [Pocket](https://app.getpocket.com/) account.\n* Pocket [consumer key](https://getpocket.com/developer/apps/new).\n* Pocket access token. You can use [fxneumann's OneClickPocket tool](http://reader.fxneumann.de/plugins/oneclickpocket/auth.php) to automate this.\n* Python 3.6+.\n\nYou can install using Pip:\n```bash\n    pip3 install pocket-stats\n```\n\nOr clone this repo:\n```bash\n    git clone https://github.com/nlbao/pocket_stats.git\n    cd pocket_stats\n    make setup\n```\n\n\n## Run web app locally\n\n```bash\n    # Set necessary environment variables:\n    export POCKET_STATS_CONSUMER_KEY='\u003cyour_pocket_consumer_key\u003e'\n    export POCKET_STATS_ACCESS_TOKEN='\u003cyour_pocket_access_token\u003e'\n       \n    # Start the webserver\n    gunicorn --workers 2 'pocket_stats.app:server' -b :8050 --reload\n    \n    # You will see something like this:\n    # Dash is running on http://127.0.0.1:8050/\n```\nGo to http://127.0.0.1:8050/ from your web browser.\n\n\n## Data querying\n\n``` python\n    from pocket_stats.data import \u003cyour_function_names\u003e\n```\n\n- Count word in all the titles:\n```python\n    \u003e\u003e\u003e count_words_in_title(data)\n    Counter({'-': 5, '|': 5, 'python': 3, 'problem': 2, 'strace': 1, 'wow': 1, 'much': 1, 'syscall': 1, 'martin': 1, 'heinz': 1, 'personal': 1, 'website': 1, '\u0026': 1, 'blog': 1, 'call': 1, 'programmer,': 1})\n```\n\n- Number of words in each article:\n```python\n    \u003e\u003e\u003e get_word_counts(data)\n    [2207, 0, 5449, 4721, 3245, 805, 1849, 4087, 0, 538, 5054, 21, 866, 266, 1146, 213, 823, 3551, 787, 0]\n```\n\n- Reading time of each article:\n```python\n    \u003e\u003e\u003e get_reading_time(data)\n    [9.80888888888889, 24.217777777777776, 20.982222222222223, 14.422222222222222, 3.577777777777778, 8.217777777777778, 18.164444444444445, 2.391111111111111, 22.462222222222223, 0.09333333333333334, 3.848888888888889, 1.1822222222222223, 5.093333333333334, 0.9466666666666667, 3.6577777777777776, 15.782222222222222, 3.497777777777778]\n```\n\n- Number of newly added articles per day:\n```python\n    \u003e\u003e\u003e get_added_time_series(data) \n                All articles\n    2020-07-04             5\n    2020-07-03             8\n    2020-07-02             2\n    2020-07-01             5\n```\n\n- Number of newly archived articles per day:\n```python\n    \u003e\u003e\u003e get_archived_time_series(data)\n                Archived articles\n    2020-07-04             2\n```\n\n- Number of articles per domain:\n```python\n    \u003e\u003e\u003e get_domain_counts(data)\n    Counter({'kalzumeus.com': 3, 'bogleheads.org': 2, 'github.io': 2, 'brendangregg.com': 1, 'martinheinz.dev': 1, 'awealthofcommonsense.com': 1, 'jlcollinsnh.com': 1, 'callan.com': 1, 'engineerseekingfire.com': 1, 'arxiv.org': 1, 'popularmechanics.com': 1, 'dolpages.com': 1, 'economist.com': 1, 'romantomjak.com': 1, 'digitalocean.com': 1, 'deepnote.com': 1})\n```\n\n- Number of articles per language:\n```python\n    \u003e\u003e\u003e get_language_counts(data)\n    Counter({'en': 17, 'unknown': 3})\n```\n\n- Number of favorite articles and its percent:\n```python\n    \u003e\u003e\u003e get_favorite_count(data)\n    {'count': 2, 'percent': 0.1}\n```\n\n## Testing\n```bash\n    make check\n```\n\n## Deployment\nYou can deploy the `app.py` as a webserver.\n\nExample: https://dash.plotly.com/deployment.\n\n\n## Contribute\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n\n## Authors\n- [Bao Nguyen](https://github.com/nlbao).\n- [contributors](https://github.com/nlbao/pocket_stats/contributors) who participated in this project.\n\n\n## License\nMIT License - see the [LICENSE.md](LICENSE) file for details.\n\n\n## Acknowledgments\n- Pocket Python client: https://github.com/rakanalh/pocket-api\n- fxneumann's OneClickPocket tool: http://reader.fxneumann.de/plugins/oneclickpocket/auth.php\n","funding_links":["https://ko-fi.com/nlbao"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlbao%2Fpocket_stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlbao%2Fpocket_stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlbao%2Fpocket_stats/lists"}