for (int i = 0; i < names.Count(); i++)
{
Console.Write($"Download gif ({progress} / {names.Count()})");
string name = names[i];
var pageSourceCode = await client.GetStringAsync($"{baseURL}/{name}_idle_animation.gif");
Regex gifFinderRegex = new Regex(@"<a href=""(/images/[a-zA-Z0-9]/[a-zA-Z0-9]{2}/[a-zA-Z0-9]+_idle_animation\.gif)"">");
Match match = gifFinderRegex.Match(pageSourceCode);
byte[] fileBytes = await client.GetByteArrayAsync($"{baseURL}{match.Groups[1]}");
File.WriteAllBytes(Path.Combine(saveLocation, name + ".gif"), fileBytes);
progress++;
Console.Write("\r");
}
for (int i = 0; i < names.Count(); i++)
{
Console.Write($"Download gif ({progress} / {names.Count()})");
string name = names[i];
var pageSourceCode = await client.GetStringAsync($"{baseURL}/{name}_idle_animation.gif");
Regex gifFinderRegex = new Regex(@"<a href=""(/images/[a-zA-Z0-9]/[a-zA-Z0-9]{2}/[a-zA-Z0-9]+_idle_animation\.gif)"">");
Match match = gifFinderRegex.Match(pageSourceCode);
byte[] fileBytes = await client.GetByteArrayAsync($"{baseURL}{match.Groups[1]}");
File.WriteAllBytes(Path.Combine(saveLocation, name + ".gif"), fileBytes);
progress++;
Console.Write("\r");
}