Compare commits
2 Commits
ea88888351
...
85ae467de2
Author | SHA1 | Date | |
---|---|---|---|
85ae467de2 | |||
ade5d01f22 |
1
mapillary_sequences_userscript/.gitignore
vendored
1
mapillary_sequences_userscript/.gitignore
vendored
@ -2,3 +2,4 @@ out*
|
|||||||
sequences*.json
|
sequences*.json
|
||||||
sequences*.txt
|
sequences*.txt
|
||||||
secrets_variables.sh
|
secrets_variables.sh
|
||||||
|
script_bash*
|
@ -1,9 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
# récupérer les séquences pour un tas d'utilisateurs
|
# récupérer les séquences pour un tas d'utilisateurs
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Liste des usernames
|
# Liste des usernames
|
||||||
usernames=("gotpo" "romelito" "julessgds" "evaseignanx" "fost" "ciutadavng" "yopasepor" "jasskum" "jonnymccullagh" "reisender" "derfred" "zlphr" "gatpro" "heilbron" "h4n5antw")
|
usernames=("pasq_fr" "gotpo" "romelito" "julessgds" "evaseignanx" "fost" "ciutadavng" "yopasepor" "jasskum" "jonnymccullagh" "reisender" "derfred" "zlphr" "gatpro" "heilbron" "h4n5antw")
|
||||||
|
#usernames=("evaseignanx" )
|
||||||
|
|
||||||
|
|
||||||
source secrets_variables.sh
|
source secrets_variables.sh
|
||||||
@ -19,9 +20,11 @@ echo "---------- utilisateur: $username"
|
|||||||
# Vérifier si le fichier sequences_$username.txt existe
|
# Vérifier si le fichier sequences_$username.txt existe
|
||||||
if [ ! -f "sequences_$username.txt" ]; then
|
if [ ! -f "sequences_$username.txt" ]; then
|
||||||
python3 get_sequences_of_username.py --username="$username" --dev_token="$MAPILLARY_DEV_TOKEN" --max_sequence=9999
|
python3 get_sequences_of_username.py --username="$username" --dev_token="$MAPILLARY_DEV_TOKEN" --max_sequence=9999
|
||||||
|
else
|
||||||
|
echo "le fichier sequences txt existe pour $username"
|
||||||
fi
|
fi
|
||||||
# Lancer la commande pour chaque username
|
# Lancer la commande pour chaque username
|
||||||
if [ ! -f "script_bash_get_sequences_for_user_$username.sh" ]; then
|
if [ ! -f "script_bash_get_sequences_for_user_$username.sh" ]; then
|
||||||
python3 text_array_to_download_script.py --username=eric_s --dev_token="$MAPILLARY_DEV_TOKEN"
|
python3 text_array_to_download_script.py --username=$username --dev_token="$MAPILLARY_DEV_TOKEN"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user