scripts/mapillary_sequences_userscript/batch_get_username.sh

28 lines
991 B
Bash

# récupérer les séquences pour un tas d'utilisateurs
#!/bin/bash
# Liste des usernames
usernames=("gotpo" "romelito" "julessgds" "evaseignanx" "fost" "ciutadavng" "yopasepor" "jasskum" "jonnymccullagh" "reisender" "derfred" "zlphr" "gatpro" "heilbron" "h4n5antw")
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
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=eric_s --dev_token="$MAPILLARY_DEV_TOKEN"
fi
done