Skip to content

Refactor crawler and DB modules to object‑oriented design#2

Open
ichigirl wants to merge 5 commits intoidefasoft:mainfrom
ichigirl:main
Open

Refactor crawler and DB modules to object‑oriented design#2
ichigirl wants to merge 5 commits intoidefasoft:mainfrom
ichigirl:main

Conversation

@ichigirl
Copy link

@ichigirl ichigirl commented Mar 4, 2026

Converted procedural scripts into classes for better encapsulation and testability:

Crawler class encapsulates configuration, GitHub API client, DB access, crawl loop and scheduler.
RepoDB class now includes helper routines (iso_to_unix, chunks, etc.) as static methods.
Removed global state and obsolete functions; modules expose clean APIs.
Updated main entrypoint to instantiate Crawler.
Adjusted imports and eliminated unused symbols.
This PR tidies up the codebase, reduces globals, and lays groundwork for future enhancements/testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant