{"id":16057776,"url":"https://github.com/hedyhli/gtrending","last_synced_at":"2025-10-04T15:30:23.660Z","repository":{"id":38359905,"uuid":"284378124","full_name":"hedyhli/gtrending","owner":"hedyhli","description":"⚡ Python library for the GitHub Trending page","archived":false,"fork":false,"pushed_at":"2023-08-07T11:24:05.000Z","size":407,"stargazers_count":35,"open_issues_count":8,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-13T05:34:38.332Z","etag":null,"topics":["github","github-trending","hacktoberfest","python","python-package","python3","trending-repositories"],"latest_commit_sha":null,"homepage":"https://gtrending.readthedocs.io/en/latest/","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/hedyhli.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-08-02T02:49:28.000Z","updated_at":"2025-07-15T18:51:03.000Z","dependencies_parsed_at":"2024-01-12T04:57:03.560Z","dependency_job_id":"7a22bab6-706d-4c32-bd10-9613d5ccfa3d","html_url":"https://github.com/hedyhli/gtrending","commit_stats":{"total_commits":188,"total_committers":12,"mean_commits":"15.666666666666666","dds":0.5957446808510638,"last_synced_commit":"c0d1fe8695c90cec32545290840e51ca777306e7"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/hedyhli/gtrending","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedyhli%2Fgtrending","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedyhli%2Fgtrending/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedyhli%2Fgtrending/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedyhli%2Fgtrending/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hedyhli","download_url":"https://codeload.github.com/hedyhli/gtrending/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedyhli%2Fgtrending/sbom","scorecard":{"id":459518,"data":{"date":"2025-08-11","repo":{"name":"github.com/hedyhli/gtrending","commit":"c0d1fe8695c90cec32545290840e51ca777306e7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/checks.yml:1","Warn: no topLevel permission defined: .github/workflows/gh-shell.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":"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/checks.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/checks.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/checks.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/checks.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/checks.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/checks.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/checks.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gh-shell.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/gh-shell.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gh-shell.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/hedyhli/gtrending/gh-shell.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/checks.yml:73","Warn: pipCommand not pinned by hash: .github/workflows/checks.yml:73","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   2 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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.4.0 not signed: https://api.github.com/repos/hedyhli/gtrending/releases/89667276","Warn: release artifact v0.4.0 does not have provenance: https://api.github.com/repos/hedyhli/gtrending/releases/89667276"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","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: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","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: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","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-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637","Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg","Warn: Project is vulnerable to: PYSEC-2015-17","Warn: Project is vulnerable to: PYSEC-2023-74"],"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-19T10:43:28.465Z","repository_id":38359905,"created_at":"2025-08-19T10:43:28.465Z","updated_at":"2025-08-19T10:43:28.465Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278334107,"owners_count":25970068,"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-10-04T02:00:05.491Z","response_time":63,"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":["github","github-trending","hacktoberfest","python","python-package","python3","trending-repositories"],"created_at":"2024-10-09T03:04:41.422Z","updated_at":"2025-10-04T15:30:23.623Z","avatar_url":"https://github.com/hedyhli.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `gtrending`\n\n![checks](https://github.com/hedyhli/gtrending/workflows/checks/badge.svg)\n[![codecov](https://codecov.io/gh/hedyhli/gtrending/branch/master/graph/badge.svg?token=J19AQKEO4W)](https://codecov.io/gh/hedyhli/gtrending)\n[![docs status](https://readthedocs.org/projects/gtrending/badge/?version=latest)](https://gtrending.readthedocs.io/en/latest/)\n[![pypi version](https://img.shields.io/pypi/v/gtrending)](https://pypi.org/project/gtrending/)\n[![Python Requirements](https://img.shields.io/pypi/pyversions/gtrending)](https://pypi.org/project/gtrending/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nFetch repositories and developers from [GitHub\ntrending](https://github.com/trending).\n\n\n```python\nfrom gtrending import fetch_repos\n\n\nrepos = fetch_repos(language=\"python\")  # Returns a dictionary\n\nfor repo in repos:\n    print(repo[\"fullname\"])  # \"user/repo\" for each repo\n```\n\nor using the CLI\n\n```sh\ngtrending repos --language python\n```\n\nThe above examples will fetch all the trending Python projects on GitHub\ntrending today.\n\n[Skip to more CLI examples](#cli)\n\n\n## Requirements\n\n* Python **3.8** or higher\n* Dependencies: requests and beautifulsoup\n\n\n## Installation\n\ngtrending is published on PyPI, use your favorite package manager and add it as\na dependency.\n\nPip:\n```\npip3 install gtrending\n```\n\nPoetry:\n```\npoetry add gtrending\n```\n\nPipx (to use gtrending CLI):\n```\npipx install gtrending\n```\n\nYou get the idea.\n\n\n## Usage\n\nDocumentation: [Read the docs (online)](https://gtrending.readthedocs.io/)\n\nYou can also download the PDF documentation build from the [latest\nrelease](https://github.com/hedyhli/gtrending/releases) or get it from [read the\ndocs' downloads](https://readthedocs.org/projects/gtrending/downloads/).\n\n\n### `fetch_repos()`\n\nParameters:\n* `language (str, optional)`:  Filtering by language, eg: python\n* `spoken_language_code (str, optional)`: The spoken language, eg: en for\n  english\n* `since (str, optional)`: The time range, choose from: [daily, weekly,\n  monthly]. Defaults to \"daily\"\n\nExample:\n```python-console\n\u003e\u003e\u003e fetch_repos(language=\"rust\", since=\"weekly\")\n[\n  {\n    'author': 'iced-rs',\n    'avatar': 'https://github.com/iced-rs.png',\n    'builtBy': [\n      {\n        'avatar': 'https://avatars.githubusercontent.com/u/518289',\n        'href': 'https://github.com/hecrj',\n        'username': 'hecrj'\n      },\n      {\n        'avatar': 'https://avatars.githubusercontent.com/u/10239377',\n        'href': 'https://github.com/tarkah',\n        'username': 'tarkah'\n      },\n      {\n        'avatar': 'https://avatars.githubusercontent.com/u/30560559',\n        'href': 'https://github.com/derezzedex',\n        'username': 'derezzedex'\n      },\n      {\n        'avatar': 'https://avatars.githubusercontent.com/u/1562417',\n        'href': 'https://github.com/clarkmoody',\n        'username': 'clarkmoody'\n      },\n      {\n        'avatar': 'https://avatars.githubusercontent.com/u/4241774',\n        'href': 'https://github.com/bungoboingo',\n        'username': 'bungoboingo'\n      }\n    ],\n    'currentPeriodStars': 82,\n    'description': 'A cross-platform GUI library for Rust, inspired by Elm',\n    'forks': 776,\n    'fullname': 'iced-rs/iced',\n    'language': 'Rust',\n    'languageColor': '#dea584',\n    'name': 'iced',\n    'stars': 17647,\n    'url': 'https://github.com/iced-rs/iced'\n  },\n  ...\n]\n```\n\n\n### `fetch_developers()`\n\nParameters:\n* `language (str, optional)`: The programming language, eg: python\n* `since (str, optional)`: The time range, choose from [daily, weekly,\n  monthly]. Defaults to \"daily\"\n* `sponsorable (bool, optional)`: Whether to only search for developers with sponsor URLs.\n  Defaults to False.\n\nExample:\n```python-console\n\u003e\u003e\u003e fetch_developers(language=\"typescript\", since=\"weekly\")\n[\n  {\n    'avatar': 'https://avatars.githubusercontent.com/u/2230985',\n    'name': 'Connor Peet',\n    'repo': {\n      'description': 'A resilience and transient-fault-handling library '\n                     'that allows developers to express policies such as '\n                     'Backoff, Retry, Circuit Breaker, Tim…',\n      'name': 'cockatiel',\n      'url': 'https://github.com/connor4312/cockatiel',\n      'descriptionUrl': ''\n    },\n    'sponsorUrl': None,\n    'url': 'https://github.com/connor4312',\n    'username': 'connor4312'\n  },\n  {\n    'avatar': 'https://avatars.githubusercontent.com/u/13049130',\n    'name': 'Robert Soriano',\n    'repo': {\n      'description': 'End-to-end typesafe APIs in Nuxt applications.',\n      'name': 'trpc-nuxt',\n      'url': 'https://github.com/wobsoriano/trpc-nuxt',\n      'descriptionUrl': 'http://trpc-nuxt.vercel.app/'\n    },\n    'sponsorUrl': None,\n    'url': 'https://github.com/wobsoriano',\n    'username': 'wobsoriano'\n  },\n  ...\n]\n```\n\n\u003cbr\u003e\n\n### `languages_list()`\n\nA list of dictionaries with each name to its parameter value:\n\n```python-console\n\u003e\u003e\u003e languages_list()\n[\n  ...\n  {\n    \"name\": \"Elm\",\n    \"param\": \"elm\"\n  },\n  {\n    \"name\": \"Emacs Lisp\",\n    \"param\": \"emacs-lisp\"\n  },\n  {\n    \"name\": \"EmberScript\",\n    \"param\": \"emberscript\"\n  },\n  {\n    \"name\": \"EQ\",\n    \"param\": \"eq\"\n  },\n  ...\n]\n```\n\n\u003cbr\u003e\n\n### `spoken_languages_list()`\n\n```python-console\n\u003e\u003e\u003e spoken_languages_list()\n[\n  ...\n  {\n    \"code\": \"it\"\n    \"name\": [ \"Italian\" ],\n  },\n  {\n    \"code\": \"iu\"\n    \"name\": [ \"Inuktitut\" ],\n  },\n  {\n    \"code\": \"ja\"\n    \"name\": [ \"Japanese\" ],\n  },\n  {\n    \"code\": \"jv\"\n    \"name\": [ \"Javanese\" ],\n  },\n  {\n    \"code\": \"kl\"\n    \"name\": [ \"Kalaallisut\", \"Greenlandic\" ],\n  },\n  ...\n]\n```\n\n\u003cbr\u003e\n\n### `check_language()`\n\nValidate the language parameter:\n\n```python-console\n\u003e\u003e\u003e check_language(\"python\")\nTrue\n\u003e\u003e\u003e check_language(\"Ruby\")\nTrue\n\u003e\u003e\u003e check_language(\"TeaScript\")  # Does not exist\nFalse\n\u003e\u003e\u003e check_language(\"\")\nFalse\n```\n\n\u003cbr\u003e\n\n### `check_spoken_language_code()`\n\nValidate the spoken language code parameter:\n\n```python-console\n\u003e\u003e\u003e check_spoken_language_code(\"es\")\nTrue\n\u003e\u003e\u003e check_spoken_language_code(\"FR\")\nTrue\n\u003e\u003e\u003e check_spoken_language_code(\"ZZ\")  # Does not exist\nFalse\n\u003e\u003e\u003e check_spoken_language_code(\"\")\nFalse\n```\n\n\u003cbr\u003e\n\n### `check_since()`\n\nCheck if the time range is correct — it must be daily, weekly, or monthly —\ncase-insensitive.\n\n---\n\nFor more API usage details, go read the docs!\n\n---\n\n## CLI\n\nUsage:\n```\ngtrending [--json] \u003ccommand\u003e [\u003cargs\u003e]\n```\n\n### Examples\n\n```sh\n# Sort repos by stars\ngtrending repos --sort stars\n\n# See only python repositories\ngtrending repos --language python\n\n# See weekly trending repos\ngtrending repos --since weekly --sort forks\n\n# Print output in json format (-j/--json)\ngtrending repos --json\n\n# See trending rust developers\ngtrending developers --language rust\n\n# See available coding languages\ngtrending langs\n\n# See available spoken languages\ngtrending spoken-langs\n```\n\n**Getting help**\n```sh\n# Help commands\ngtrending --help\n# or see available arguments for specific sub-command\ngtrending developers --help\n```\n\n**Usage with jq**\n```sh\n# Show only fullname (user/repo) and total stars for each repo\n# Still a json output\ngtrending repos --json | jq '[.[] | {fullname, stars}]'\n\n# Show only fullname for repos\n# Not a json anymore\ngtrending repos --json | jq '.[] | .fullname'\n\n# Similarly for trending developers\n# Show only username and repository url\ngtrending developers -j | jq '[ .[] | {username, repo: .repo_url} ]'\n\n# Show only developers with a sponsorUrl\ngtrending developers -j | jq '[ map(select(.sponsorUrl != null)) | .[] | {username, repo_name: .repo.name} ]'\n```\n\n## Uses\n\n* requests — Making API requests\n* BeautifulSoup - Scraping github.com/trending\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhedyhli%2Fgtrending","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhedyhli%2Fgtrending","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhedyhli%2Fgtrending/lists"}