Skip to main content

Search repositories on GitHub

Project description

The package searches repositories on GitHub using GraphQL API. One may specify parameters such as programming language, start date, and number of stars to get a list of GitHub repositories modified on or after the specified start date and satisfying other filters.

Parameters

  • --api-token: GitHub API token or Personal Access Token
  • --out-file: Output file path
  • --start-date: Start date for search in dd-mm-yyyy
  • --lang: Primary programming language of the repositories
  • --min-stars: Minimum star count
  • --verbose: Verbose mode

Example

Install searchgithubrepo package using pip and use it in your program.

from searchrepo.searchrepo import search_repo

one_day_old_date = (datetime.datetime.now().date() - datetime.timedelta(days=1))
search_repo(start_date=one_day_old_date,
            out_file='repos.csv',
            api_token='51ec41929c6f48c23482a734534327d308',
            stars=100,
            lang='Java', 
            verbose=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

searchgithubrepo-1.0.6.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

searchgithubrepo-1.0.6-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file searchgithubrepo-1.0.6.tar.gz.

File metadata

  • Download URL: searchgithubrepo-1.0.6.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.2

File hashes

Hashes for searchgithubrepo-1.0.6.tar.gz
Algorithm Hash digest
SHA256 ff80938c10c99f6ce28b970e79356b77b049085c0cac3e92cdf49402ccc5df71
MD5 c3af781ed168e646ec8c3b545fd3e4da
BLAKE2b-256 f640b9ba04e8a8569e607272e7be331bbf236473f0f6de45e91d4fe3bad22835

See more details on using hashes here.

File details

Details for the file searchgithubrepo-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for searchgithubrepo-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9e965b2dcfab87cb120ea5e85135bfd99a612aee96a5a769835585d387b07565
MD5 78d0fc20b808d73b2d3cb68cf903e23e
BLAKE2b-256 bb47abd81d00fab4333d07b08f1bdb2da3be9db2fbc94b908acc7b8ab09c1630

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page