How woolball/job-catcher works
Project Type and Purpose
• Job Catcher is a full-stack web application that serves as a job aggregator and matching platform. Its primary function is to retrieve job postings using different fetchers (e.g., a custom scraper or the JSearch API) and then re-rank them using various matching strategies (semantic similarity, TF-IDF, keyword scoring).
• The README emphasizes that the application deals with job retrieval, ranking, and display via a web interface, along with supporting backend components like rate limiting via Redis and storage of results in CSV files.
Main Components
a. Web Interface (Frontend)
• The “templates” folder holds HTML files (e.g., home.html) and the “static” directory contains assets (JavaScript and CSS). These represent the presentation layer through which users interact with the application via their browser.
b. Application Server (Backend)
• The “app.py” file is the main Flask application serving as the HTTP server.
• The “config.py” file, environment variables (from the .env instructions), and the Procfile (for deployment) are configuration elements.
c. Business Logic Layer
• Inside the “src/” directory:
• "src/fetchers" – Contains modules such as “scraper.py”, “jsearch.py” responsible for retrieving job postings from external sources.
• "src/ranking.py" – Contains the logic to rerank the job listings using various scoring methods.
• "src/utils.py" – Contains helper functions.
d. External Services and Dependencies
• Redis: Used for managing API rate limiting.
• External APIs: Google’s job search API and the JSearch service (for which the user must supply an API key) via the respective fetchers.
• CSV Storage: Results are stored in a CSV file under the “data/” directory; although it is created at runtime, it’s part of the data persistence.
e. Tests
• The “tests/” directory includes end-to-end, integration, and unit tests highlighting the layered testing strategy covering different aspects of the application.
Interactions and Relationships
• The application server (Flask) internally invokes the business logic layers:
• It calls functions in “src/fetchers” to retrieve job postings.
• It passes retrieved data to “src/ranking” for combining semantic, TF-IDF, and keyword scoring.
• It may then store or log results (in CSV under the “data/” directory) and eventually render the processed results via templates.
Architectural Patterns and Design Principles
• Separation of Concerns: Clearly differentiate between the presentation, business logic (fetchers and ranking), and auxiliary components (like Redis and CSV persistence).
• Modularity: Emphasize how the “fetchers” directory supports multiple job retrieval methods, making the system easily extensible to add new scrapers or API integrations.
• Configurability: Highlight the importance of the .env and config.py files in managing environment-specific parameters such as API keys, rate limits, and fetcher selection.
Relevant Technologies and Frameworks
• Flask as the web application framework.
• Python for the business logic.
• Redis for rate limiting.
• Frontend technologies: HTML (templates), CSS, and JavaScript (static assets).
• External libraries (e.g., SentenceTransformers) for semantic similarity computations.