31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# récupérer les séquences pour un tas d'utilisateurs
|
|
|
|
|
|
# Liste des usernames
|
|
usernames=("pasq_fr" "gotpo" "romelito" "julessgds" "evaseignanx" "fost" "ciutadavng" "yopasepor" "jasskum" "jonnymccullagh" "reisender" "derfred" "zlphr" "gatpro" "heilbron" "h4n5antw")
|
|
#usernames=("evaseignanx" )
|
|
|
|
|
|
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
|
|
bash find_user_id.sh $username
|
|
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
|
|
else
|
|
echo "le fichier sequences txt existe pour $username"
|
|
fi
|
|
# Lancer la commande pour chaque username
|
|
if [ ! -f "script_bash_get_sequences_for_user_$username.sh" ]; then
|
|
python3 text_array_to_download_script.py --username=$username --dev_token="$MAPILLARY_DEV_TOKEN"
|
|
fi
|
|
done
|