2024-07-08 23:03:37 +02:00
|
|
|
#!/bin/bash
|
2024-07-08 16:30:15 +02:00
|
|
|
# récupérer les séquences pour un tas d'utilisateurs
|
|
|
|
|
|
|
|
|
|
|
|
# Liste des usernames
|
2024-07-09 12:53:57 +02:00
|
|
|
usernames=( "lenny32" "heilbron" "binerf" "sylvain_m" "igaresh1" "emerzh" "MossTown" "eesger" "pasq_fr" "gotpo" "romelito" "julessgds" "evaseignanx" "fost" "ciutadavng" "yopasepor" "jasskum" "jonnymccullagh" "reisender" "derfred" "zlphr" "gatpro" "heilbron" "h4n5antw" "baptistemm" "geraldchatagnon" "remonet")
|
2024-07-08 23:03:37 +02:00
|
|
|
#usernames=("evaseignanx" )
|
2024-07-08 16:30:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
source secrets_variables.sh
|
|
|
|
# Boucle sur la liste des usernames
|
|
|
|
for username in "${usernames[@]}"; do
|
|
|
|
# Lancer la commande pour chaque username
|
|
|
|
|
|
|
|
echo "---------- utilisateur: $username"
|
|
|
|
|
|
|
|
if [ ! -f "out_$username.json" ]; then
|
2024-07-08 16:41:07 +02:00
|
|
|
bash find_user_id.sh $username
|
2024-07-08 16:30:15 +02:00
|
|
|
fi
|
|
|
|
# Vérifier si le fichier sequences_$username.txt existe
|
|
|
|
if [ ! -f "sequences_$username.txt" ]; then
|
|
|
|
python3 get_sequences_of_username.py --username="$username" --dev_token="$MAPILLARY_DEV_TOKEN" --max_sequence=9999
|
2024-07-08 23:03:37 +02:00
|
|
|
else
|
|
|
|
echo "le fichier sequences txt existe pour $username"
|
2024-07-08 16:30:15 +02:00
|
|
|
fi
|
|
|
|
# Lancer la commande pour chaque username
|
2024-07-08 16:45:57 +02:00
|
|
|
if [ ! -f "script_bash_get_sequences_for_user_$username.sh" ]; then
|
2024-07-08 23:03:37 +02:00
|
|
|
python3 text_array_to_download_script.py --username=$username --dev_token="$MAPILLARY_DEV_TOKEN"
|
2024-07-08 16:30:15 +02:00
|
|
|
fi
|
|
|
|
done
|