DEV Community

Cover image for 🚙GTA Source Code in My Repository
King Triton
King Triton

Posted on • Updated on

🚙GTA Source Code in My Repository

Hey developers! Today, I’m bringing you something unusual and intriguing. Introducing a project that might change the way you track trends on GitHub. No, there’s no GTA source code here, but there’s something just as exciting!

What is GitHub Trending Archive?

GitHub Trending Archive is a unique Python-based application that collects daily data on popular GitHub repositories and stores it in a database. This tool allows you to track changes in trends for selected programming languages, making it easier to see what's hot in the developer world.

Why is This Important?

Unlike other tools, GitHub Trending Archive is written entirely in Python. There are almost no similar solutions on the market, making this tool especially valuable for those who prefer Python for their development work. If you want to keep an eye on trends and analyze them using one of the most popular programming languages, this tool is perfect for you!

How Does It Work?

The project consists of several key components:

  • app.py: The main script that launches the Flask application and the system tray icon. It also handles daily trend data collection.
  • config.py: Contains configuration parameters, including the path to the .env file and application settings.
  • database.py: Functions for interacting with the SQLite database, including table creation and data insertion.
  • scraper.py: A script for scraping data from GitHub trending pages and saving it to the database.
  • webapp.py: Flask application for displaying trend data through a web interface.
  • templates/: Directory containing HTML templates for the web application.

Installation and Setup

  1. Clone the repository:
   git clone https://github.com/king-tri-ton/github_trending_archive.git
   cd github_trending_archive
Enter fullscreen mode Exit fullscreen mode
  1. Install dependencies:
   pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode
  1. Configure settings:

For version 1.0.4 and later, create a .env file in the C:\Program Files\King-Triton\GTA directory and specify the parameters:

   SCAN_TIME=17:00
   DATABASE_PATH=C:\\Program Files\\King-Triton\\GTA\\trends.db
   LANGUAGES=python,java,javaScript
Enter fullscreen mode Exit fullscreen mode
  1. Run the application:
   python app.py
Enter fullscreen mode Exit fullscreen mode

This will start the Flask server and the system tray icon. The application will automatically collect trend data daily at 03:00.

How to Use

  • System Tray: Right-click the icon in the system tray to open or close the web application.
  • Web Interface: Open a browser and go to http://127.0.0.1:5000 to view available trend dates and information.

Screenshots

Here are some screenshots of the web application:

  1. Screenshot_67
  2. Screenshot_68
  3. Screenshot_69

Future Plans

  1. Trend Analysis with AI: Integration with OpenAI API for trend analysis and additional insights.
  2. Installer with Configuration Wizard: Creating an installer with a graphical configuration tool for selecting programming languages and setting other parameters without manually editing files.

Conclusion

Want to stay up-to-date with GitHub trends and analyze them using a powerful Python-based tool? Don’t miss out on GitHub Trending Archive. It’s your secret weapon for trend analysis and staying ahead in the development world.

If you have any questions or suggestions, feel free to reach out to me via Telegram. Your feedback and ideas will help improve the project!

You can buy GitHub Trending Archive v1.0.4 for $5 on Patreon.

I look forward to your feedback and hope this tool proves useful for your trend analysis!

Top comments (0)