Promo

D 52 completed
Api
containerized / python · tiny
13
Files
910
LOC
1
Frameworks
3
Languages

Pipeline State

completed
Run ID
#368195
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Skipped
Decision
skip_scaffold_dup
Novelty
32.03
Framework unique
Isolation
Last stage change
2026-04-16 18:15:42
Deduplication group #47702
Member of a group with 1 similar repo(s) — canonical #29960 view group →
Top concepts (1)
Web Backend
About: code-quality intelligence by Repobility · https://repobility.com

AI Prompt

I want to build a web API using Python and FastAPI that aggregates and serves promotional offers. This API should scrape data from various partner websites. Please structure the project to be containerized, providing necessary files like a Dockerfile and docker-compose.yml. The project should manage configuration using environment variables, and I'll need a clear setup for dependencies listed in a requirements file.
python fastapi web-api scraping docker containerization promotion backend
Generated by gemma4:latest

Catalog Information

A web API that aggregates and serves promotional offers scraped from partner websites.

Description

The project exposes a FastAPI-based service that scrapes promotional data from partner websites using BeautifulSoup, stores the results in a PostgreSQL database, and provides endpoints for clients to query current offers. It supports filtering by category, expiration date, and source, and includes pagination for efficient data retrieval. The API is designed for integration into e-commerce platforms, marketing dashboards, or any application that requires up-to-date coupon and discount information. By centralizing the scraping logic and offering a clean RESTful interface, it eliminates the need for each client to implement its own scraper. The service also logs scraping activity and handles rate limiting to respect partner site policies.

الوصف

يقدم المشروع خدمة واجهة برمجة تطبيقات مبنية على FastAPI تقوم بجمع بيانات العروض الترويجية من مواقع شريكة عبر تقنية BeautifulSoup، ثم تخزين النتائج في قاعدة بيانات PostgreSQL. يتيح للمستخدمين استعلام العروض الحالية عبر نقاط نهاية RESTful، مع إمكانية تصفية النتائج حسب الفئة، تاريخ الانتهاء، أو المصدر، مع دعم للصفحات لتسهيل استرجاع البيانات بكفاءة. تم تصميم الواجهة لتتكامل بسلاسة مع منصات التجارة الإلكترونية ولوحات تحكم التسويق، مما يتيح للمؤسسات الحصول على رموز القسائم والخصومات المحدثة دون الحاجة لتطوير أدوات جمع خاصة. كما يتضمن المشروع تسجيل نشاط التجميع وإدارة حدود الطلبات لضمان التزام سياسات المواقع الشريكة. يميز المشروع قدرته على تجميع العروض من مصادر متعددة وتقديمها عبر واجهة موحدة، ما يوفر وقتاً وجهداً كبيراً للمطورين والمسوقين على حد سواء.

Novelty

6/10

Tags

promotion-aggregation web-scraping coupon-management offer-discovery data-retrieval e-commerce-integration

Technologies

beautifulsoup fastapi uvicorn

Claude Models

claude-opus-4.6

Quality Score

D
51.8/100
Structure
34
Code Quality
75
Documentation
31
Testing
0
Practices
77
Security
100
Dependencies
60

Strengths

  • Consistent naming conventions (snake_case)
  • Good security practices \u2014 no major issues detected
  • Containerized deployment (Docker)

Weaknesses

  • Missing README file \u2014 critical for project understanding
  • No LICENSE file \u2014 legal ambiguity for contributors
  • No tests found \u2014 high risk of regressions
  • No CI/CD configuration \u2014 manual testing and deployment

Recommendations

  • Add a comprehensive README.md explaining purpose, setup, usage, and architecture
  • Add a test suite \u2014 start with critical path integration tests
  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a linter configuration to enforce code style consistency
  • Add a LICENSE file (MIT recommended for open source)

Security & Health

4.1h
Tech Debt (E)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (10)
Provenance: Repobility (https://repobility.com) — every score reproducible from /scan/
Unknown
License
0.0%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

python
97.4%
yaml
1.8%
text
0.8%

Frameworks

FastAPI

Concepts (1)

All metrics by Repobility · https://repobility.com
CategoryNameDescriptionConfidence
Repobility — the code-quality scanner for AI-generated software · https://repobility.com
auto_categoryWeb Backendweb-backend70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/92390.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV