PyGithub / PyGithub/PyGithub

Get Repositories for a specific date/month/year or within a range of dates

Open
#2,230 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
1.9k
Avg merge
17m
Merged PRs (30d)
2

Description

Hi,
Can anyone please help me fetch repositories created on a particular date/month/year or within a range of dates?
I have tried the following but it does not give proper results:

  1. using "query"
    g = Github(TOKEN) repositories = g.search_repositories(query='since:2018')

  2. using "since"
    g = Github(TOKEN) r = g.get_repos(since=2021)

I want to crawl all the public repo for a particular year but since the requests are limited to 1000 thus I am trying to break my search query into smaller queries.

Any help/pointer would be appreciated.
Thanks in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the issue's examples for Github.search_repositories and Github.get_repos, then compare their date-related behavior with the GitHub API's repository search capabilities. The requested date formats, expected results, and whether this needs a library change or usage guidance must be clarified before completion can be defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.