{"id":47587974,"url":"https://github.com/fivehealth/smooch-logs","last_synced_at":"2026-04-01T16:48:37.275Z","repository":{"id":53465549,"uuid":"283789650","full_name":"fivehealth/smooch-logs","owner":"fivehealth","description":"Download Smooch logs using a headless browser.","archived":false,"fork":false,"pushed_at":"2022-12-08T11:19:18.000Z","size":88,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-20T20:52:17.475Z","etag":null,"topics":["python","selenium","smooch"],"latest_commit_sha":null,"homepage":"","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/fivehealth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-30T13:55:36.000Z","updated_at":"2024-05-30T20:26:24.000Z","dependencies_parsed_at":"2023-01-25T12:30:14.084Z","dependency_job_id":null,"html_url":"https://github.com/fivehealth/smooch-logs","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/fivehealth/smooch-logs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivehealth%2Fsmooch-logs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivehealth%2Fsmooch-logs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivehealth%2Fsmooch-logs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivehealth%2Fsmooch-logs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fivehealth","download_url":"https://codeload.github.com/fivehealth/smooch-logs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivehealth%2Fsmooch-logs/sbom","scorecard":{"id":401735,"data":{"date":"2025-08-11","repo":{"name":"github.com/fivehealth/smooch-logs","commit":"154264abe28497658cacd2d7c45a057d36620da6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish-pypi.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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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/publish-pypi.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/fivehealth/smooch-logs/publish-pypi.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-pypi.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/fivehealth/smooch-logs/publish-pypi.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating joyzoursky/python-chromedriver:3.8-alpine3.10-selenium to joyzoursky/python-chromedriver:3.8-alpine3.10-selenium@sha256:4c8228a5c8768ec61e2db525a9c1992a90bc60cd5d3a367b8271fff8791fc2c2","Warn: pipCommand not pinned by hash: Dockerfile:10-11","Warn: pipCommand not pinned by hash: Dockerfile:10-11","Warn: pipCommand not pinned by hash: .github/workflows/publish-pypi.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/publish-pypi.yml:21","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   4 pipCommand 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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-865 / GHSA-vv2x-vrpj-qqpq","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-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: PYSEC-2021-140 / GHSA-9w8r-397f-prfh","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: PYSEC-2021-141 / GHSA-pq64-v7f5-gqh8","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: PYSEC-2022-43167","Warn: Project is vulnerable to: PYSEC-2023-206","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"],"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-18T20:14:01.995Z","repository_id":53465549,"created_at":"2025-08-18T20:14:01.995Z","updated_at":"2025-08-18T20:14:01.995Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["python","selenium","smooch"],"created_at":"2026-04-01T16:48:36.619Z","updated_at":"2026-04-01T16:48:37.267Z","avatar_url":"https://github.com/fivehealth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smooch Logs Downloader\n\n[![PyPI version](https://img.shields.io/pypi/v/smooch_logs.svg)](https://pypi.python.org/pypi/smooch_logs/)\n[![PyPI license](https://img.shields.io/pypi/l/smooch_logs.svg)](https://pypi.python.org/pypi/smooch_logs/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/smooch_logs.svg)](https://pypi.python.org/pypi/smooch_logs/)\n[![PyPI status](https://img.shields.io/pypi/status/smooch_logs.svg)](https://pypi.python.org/pypi/smooch_logs/)\n[![PyPI download total](https://img.shields.io/pypi/dm/smooch_logs.svg)](https://pypi.python.org/pypi/smooch_logs/)\n\nThis is a simple module for downloading Smooch logs from their website.\nWe obtain login credentials for Smooch using a Selenium with a Chromium headless browser.\n\n## Installation\n\n```bash\npipenv install smooch_logs\n```\n\n## Usage\n\n### CLI\n\nYou use the `smooch_logs.downloader` script to directly download Smooch logs from thr CLI.\n\n```bash\n$ python -m smooch_logs.downloader --help                                                                                                \u003caws:botmd\u003e\n\nusage: downloader.py [-h] [-A app_id [app_id ...]] [--start date] [--end date] -o uri\n\nDownload Smooch logs for given application ID.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -A app_id [app_id ...], --apps app_id [app_id ...]\n                        Smooch App IDs to download logs for. Defaults to all apps.\n  --start date          Dump logs after this date/time (ISO date time format; default = all logs available which is ~30 days)\n  --end date            Dump logs before this date/time (ISO date time format; default = now).\n  -o uri, --output uri  Dump logs to this URI.\n```\n\nFor example, to download logs for all apps in the last 3 days,\n\n```bash\npython -m smooch_logs.downloader --start `date --utc --iso-8601 --date=\"3 days ago\"` -o last_3_days.json\n```\n\n### Module\n\n```python\nimport logging\n\nfrom smooch_logs import SmoochWebSession\nfrom smooch_logs import SmoochLogsDownloader\nfrom smooch_logs import SMOOCH_BASE_URL\n\nlogger = logging.getLogger(__name__)\n\nwith SmoochWebSession() as session:\n    r = session.get(f'{SMOOCH_BASE_URL}/webapi/apps?limit=999')\n    r.raise_for_status()\n\n    app_ids = [d['_id'] for d in r.json()['apps']]\n\n    logger.info(f'Found {len(app_ids)} Smooch applications.')\n\n    downloader = SmoochLogsDownloader(session)\n    for app_id in app_ids:\n        r = session.get(f'{SMOOCH_BASE_URL}/webapi/apps/{app_id}')\n        r.raise_for_status()\n        logger.info(f'Downloading logs for \"{r.json()[\"name\"]}\" \u003c{app_id}\u003e from Smooch.')\n\n        for event in downloader.download(app_id, start=A.start, end=A.end):\n            print(json.dumps(event))\n        #end for\n    #end for\n#end with\n```\n\nThe [`SmoochWebSession`](smooch_logs/session.py) sets up the Selenium webdriver and required web-based operation to obtain `sessionId` from Smooch.\nDuring development, it can be convenient to specify an existing session ID for the Smooch session by\n```python\nSmoochWebSession(session_id='xxx', logout=False)\n```\nThe [`SmoochWebSession`](smooch_logs/session.py) object automatically checks for session validity and re-logins if necessary.\n\nThe [`SmoochLogsDownloader`](smooch_logs/downloader.py) is a convenience class for downloading Smooch logs for a particular application.\n\n\n## Docker\n\nThe [Dockerfile](Dockerfile) included in this repository contains the necessary to run the Python download script.\nIt currently comes with a [shell script to download the last 3 days of logs](download_last_3_days.sh) for all Smooch applications and save them to the URI specified in environment variable `OUTPUT_URI`.\nThis is currently used by the authors in a daily job to download logs.\nFeel free to modify as necessary for your use case.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivehealth%2Fsmooch-logs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffivehealth%2Fsmooch-logs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivehealth%2Fsmooch-logs/lists"}