ajout du manuel dans l'app
16
README.md
|
@ -4,39 +4,39 @@ Application Flask qui reçoit différents types de documents et retourne un comp
|
|||
|
||||
## Obtenir une sauvegarde des données de son profil LinkedIn
|
||||
|
||||
![](tuto/obtenir_sauvegarde_donnees.png)
|
||||
![](templates/tuto/obtenir_sauvegarde_donnees.png)
|
||||
|
||||
## Télécharger depuis le courriel
|
||||
|
||||
![](tuto/courriel_telecharger.png)
|
||||
![](templates/tuto/courriel_telecharger.png)
|
||||
|
||||
## Extraire les fichiers requis du zip
|
||||
|
||||
Trouver et ouvrir le fichier zip
|
||||
|
||||
![](tuto/fichier-zip.png)
|
||||
![](templates/tuto/fichier-zip.png)
|
||||
|
||||
Extraire les deux fichiers suivants:
|
||||
|
||||
- Comments.csv
|
||||
- Shares.csv
|
||||
|
||||
![](tuto/fichier-zip-choix.png)
|
||||
![](templates/tuto/fichier-zip-choix.png)
|
||||
|
||||
## Démo de l'application
|
||||
|
||||
Ouvrir l'application
|
||||
|
||||
![](tuto/app_001_debut.png)
|
||||
![](templates/tuto/app_001_debut.png)
|
||||
|
||||
Sélectionner le type de fichier
|
||||
|
||||
![](tuto/app_002_choix.png)
|
||||
![](templates/tuto/app_002_choix.png)
|
||||
|
||||
Sélectionner le fichier et cliquer sur Envoyer
|
||||
|
||||
![](tuto/app_003_envoyer.png)
|
||||
![](templates/tuto/app_003_envoyer.png)
|
||||
|
||||
On obtient un tableau de fréquence des emojis dans le fichier sélectionné
|
||||
|
||||
![](tuto/app_004_emoji_table.png)
|
||||
![](templates/tuto/app_004_emoji_table.png)
|
3
app.py
|
@ -6,6 +6,9 @@ import sys
|
|||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/<string:page_name>/')
|
||||
def render_static(page_name):
|
||||
return render_template('%s.html' % page_name)
|
||||
|
||||
@app.route('/linkedin', methods=['GET', 'POST'])
|
||||
def upload_file():
|
||||
|
|
1
build.sh
|
@ -1,4 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker image build --tag docker-registry.dev.jevalide.ca/emoji-flask-app:latest .
|
||||
docker push docker-registry.dev.jevalide.ca/emoji-flask-app:latest
|
3
push.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker push docker-registry.dev.jevalide.ca/emoji-flask-app:latest
|
4
run.sh
|
@ -1 +1,3 @@
|
|||
docker run -d -p 5000:5000 --name "emoji-flask-app" emoji-flask-app
|
||||
#!/bin/bash
|
||||
|
||||
docker run -d -p 5000:5000 --name "emoji-flask-app" docker-registry.dev.jevalide.ca/emoji-flask-app:latest
|
|
@ -3,6 +3,11 @@
|
|||
<title>Emoji Count - Upload</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<a href="/manuel">Manuel</a>
|
||||
|
||||
<br><br>
|
||||
|
||||
<form action="/linkedin_upload" method="POST"
|
||||
enctype="multipart/form-data">
|
||||
<input type="radio" id="linkedin_shares" name="type_linkedin"
|
||||
|
@ -15,5 +20,6 @@
|
|||
<input type="file" name="linkedin_csv"/>
|
||||
<input type="submit"/>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
1
templates/manuel.html
Normal file
|
@ -0,0 +1 @@
|
|||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 202 KiB After Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 175 KiB |
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 174 KiB |