mirror of
https://github.com/guezoloic/millesima_projetS6.git
synced 2026-03-29 03:23:47 +00:00
Compare commits
5 Commits
jalon2-loi
...
b865a59aba
| Author | SHA1 | Date | |
|---|---|---|---|
| b865a59aba | |||
|
|
fde1f36148 | ||
| 6fbb36ea37 | |||
|
|
bcacd7a915 | ||
|
|
d182e08f9b |
58
.github/workflows/static.yml
vendored
Normal file
58
.github/workflows/static.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
# Simple workflow for deploying static content to GitHub Pages
|
||||
name: Deploy static content to Pages
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["main"]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
# Single deploy job since we're just deploying
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
# Installe le projet en mode éditable avec les extras de doc
|
||||
pip install -e ".[doc]"
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
- name: Build Documentation
|
||||
run: mkdocs build
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
# Upload entire repository
|
||||
path: './site'
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
17
docs/cleaning.md
Normal file
17
docs/cleaning.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Cleaning
|
||||
|
||||
## Sommaire
|
||||
[TOC]
|
||||
|
||||
---
|
||||
|
||||
## Classe `Cleaning`
|
||||
::: src.cleaning.Cleaning
|
||||
options:
|
||||
heading_level: 3
|
||||
members:
|
||||
- __init__
|
||||
- getVins
|
||||
- drop_empty_appellation
|
||||
- fill_missing_scores
|
||||
- encode_appellation
|
||||
@@ -1 +1,3 @@
|
||||
# Millesima
|
||||
|
||||
L’objectif de ce projet est d’étudier, en utilisant des méthodes d’apprentissage automatique, l’impact de différents critères (notes des critiques, appelation) sur le prix d’un vin. Pour ce faire, on s’appuiera sur le site Millesima (https://www.millesima.fr/), qui a l’avantage de ne pas posséder de protection contre les bots. Par respect pour l’hébergeur du site, on veillera à limiter au maximum le nombre de requêtes. En particulier, on s’assurera d’avoir un code fonctionnel avant de scraper l’intégralité du site, pour éviter les répétitions.
|
||||
@@ -1,3 +1,31 @@
|
||||
# Scraper
|
||||
|
||||
## Sommaire
|
||||
[TOC]
|
||||
|
||||
---
|
||||
|
||||
## Classe `Scraper`
|
||||
::: scraper.Scraper
|
||||
options:
|
||||
members:
|
||||
- __init__
|
||||
- getvins
|
||||
- getjsondata
|
||||
- getresponse
|
||||
- getsoup
|
||||
heading_level: 4
|
||||
|
||||
## Classe `_ScraperData`
|
||||
::: scraper._ScraperData
|
||||
options:
|
||||
members:
|
||||
- __init__
|
||||
- getdata
|
||||
- appellation
|
||||
- parker
|
||||
- robinson
|
||||
- suckling
|
||||
- prix
|
||||
- informations
|
||||
heading_level: 4
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
# _ScraperData
|
||||
|
||||
::: scraper._ScraperData
|
||||
Reference in New Issue
Block a user