Record Retriever is a Python application with a graphical user interface (GUI) that allows users to search for specific files in GitHub repositories using a GitHub token. The application uses the GitHub API to search repositories and check for the existence of a specified file in the root of those repositories.
- Search for GitHub repositories based on a query.
- Check for the existence of a specified file in the root directory of the repositories.
- Handles GitHub API rate limits by allowing users to input a new token.
- Displays search results in a text box, including repository name, URL, stars, and last updated date.
- Supports a JSON format for the final result set.
- Python 3.x
- GitHub Personal Access Token
-
Clone the repository:
git clone https://github.com/YatharthBhatia/Record-Retriever.git cd Record-Retriever
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
The
requirements.txt
should include:requests ttkthemes
-
Run the application:
python record_retriever.py
-
Enter your GitHub token in the "GitHub Token" field.
-
Enter the search query in the "Search Query" field.
-
Enter the filename to search for in the root directory of repositories (default is
SysSettings.xlsx
). -
Click the "Search" button to start the search.
-
The results will be displayed in the text box, including the repository name, URL, stars, and last updated date. If any repositories contain the specified file, their information will be displayed in JSON format as well.
If you exceed the GitHub API rate limit, the application will prompt you to wait until the rate limit resets or to provide a new GitHub token. You can enter 'exit' to exit the program or provide a new token to continue the search.