mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-24 07:38:13 +02:00
feat: Introduce Cataloguemate.fr scraper service and associated catalogue administration UI.
This commit is contained in:
1 parent
d772e85ae4
commit
03d79e45fb
3 files changed
+86
-9
No files matched your search
@@ -278,7 +278,8 @@ async def scrape_enseigne(enseigne: Enseigne, db: Session) -> ScrapingLog:
|
||||
date_debut=datetime.now(), # Todo: extract real dates
|
||||
date_fin=datetime.now() + timedelta(days=14),
|
||||
image_couverture_url=pages[0]['image_url'],
|
||||
content_hash=content_hash
|
||||
content_hash=content_hash,
|
||||
nombre_pages=len(pages) # Set actual page count
|
||||
)
|
||||
db.add(new_cat)
|
||||
db.commit()
|
||||
|
||||
Reference in new issue
Block a user