mirror of
https://github.com/guezoloic/millesima_projetS6.git
synced 2026-03-28 11:03:41 +00:00
fix(scraper.py): retirer commentaire code et print
This commit is contained in:
@@ -377,18 +377,10 @@ class Scraper:
|
||||
try:
|
||||
data: dict[str, object] = self.getjsondata(subdir).getdata()
|
||||
|
||||
# Changement dans la maniere du site stocke ses données.
|
||||
#
|
||||
# for element in ["initialReduxState", "categ", "content"]:
|
||||
# data = cast(dict[str, object], data.get(element))
|
||||
# print(data)
|
||||
|
||||
products: list[dict[str, Any]] = cast(
|
||||
list[dict[str, Any]], data.get("products")
|
||||
)
|
||||
|
||||
print(products)
|
||||
|
||||
return products
|
||||
|
||||
except (JSONDecodeError, HTTPError):
|
||||
|
||||
Reference in New Issue
Block a user