mirror of
https://github.com/guezoloic/millesima-ai-engine.git
synced 2026-03-28 18:03:47 +00:00
Compare commits
3 Commits
f5d5703e49
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
416cfcbf8b | ||
| 32c5310e37 | |||
| 9dfc7457a0 |
18
.github/dependabot.yml
vendored
Normal file
18
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# To get started with Dependabot version updates, you'll need to specify which
|
||||||
|
# package ecosystems to update and where the package manifests are located.
|
||||||
|
# Please see the documentation for all configuration options:
|
||||||
|
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
||||||
|
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "pip"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
day: "saturday"
|
||||||
|
open-pull-requests-limit: 5
|
||||||
|
groups:
|
||||||
|
python-dependencies:
|
||||||
|
patterns:
|
||||||
|
- "*"
|
||||||
|
|
||||||
@@ -8,6 +8,10 @@ dependencies = [
|
|||||||
"tqdm==4.67.3",
|
"tqdm==4.67.3",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
pythonpath = "src"
|
||||||
|
testpaths = ["tests"]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
test = ["pytest==8.4.2", "requests-mock==1.12.1", "flake8==7.3.0"]
|
test = ["pytest==8.4.2", "requests-mock==1.12.1", "flake8==7.3.0"]
|
||||||
doc = ["mkdocs<2.0.0", "mkdocs-material==9.6.23", "mkdocstrings[python]"]
|
doc = ["mkdocs<2.0.0", "mkdocs-material==9.6.23", "mkdocstrings[python]"]
|
||||||
|
|||||||
@@ -377,18 +377,10 @@ class Scraper:
|
|||||||
try:
|
try:
|
||||||
data: dict[str, object] = self.getjsondata(subdir).getdata()
|
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(
|
products: list[dict[str, Any]] = cast(
|
||||||
list[dict[str, Any]], data.get("products")
|
list[dict[str, Any]], data.get("products")
|
||||||
)
|
)
|
||||||
|
|
||||||
print(products)
|
|
||||||
|
|
||||||
return products
|
return products
|
||||||
|
|
||||||
except (JSONDecodeError, HTTPError):
|
except (JSONDecodeError, HTTPError):
|
||||||
|
|||||||
@@ -185,17 +185,11 @@ def mock_site():
|
|||||||
{dumps({
|
{dumps({
|
||||||
"props": {
|
"props": {
|
||||||
"pageProps": {
|
"pageProps": {
|
||||||
"initialReduxState": {
|
"products": [
|
||||||
"categ": {
|
{"seoKeyword": "/nino-negri-5-stelle-sfursat-2022.html",},
|
||||||
"content": {
|
{"seoKeyword": "/poubelle",},
|
||||||
"products": [
|
{"seoKeyword": "/",}
|
||||||
{"seoKeyword": "/nino-negri-5-stelle-sfursat-2022.html",},
|
]
|
||||||
{"seoKeyword": "/poubelle",},
|
|
||||||
{"seoKeyword": "/",}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -213,14 +207,8 @@ def mock_site():
|
|||||||
{dumps({
|
{dumps({
|
||||||
"props": {
|
"props": {
|
||||||
"pageProps": {
|
"pageProps": {
|
||||||
"initialReduxState": {
|
"products": [
|
||||||
"categ": {
|
]
|
||||||
"content": {
|
|
||||||
"products": [
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user