#!/bin/bash

# Mảng chứa các URL cần thực hiện yêu cầu GET
urls=(
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=us"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=uk"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=fr"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=de"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=es"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=pt"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=it"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=jp"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=ca"
    "https://printerval.com/seo/builder/build-sitemaps?action=tag&locale=au"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=us"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=uk"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=fr"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=de"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=es"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=pt"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=it"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=jp"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=ca"
    "https://printerval.com/seo/builder/build-sitemaps?action=product&locale=au"
)

# User-Agent
user_agent="Mega Schedule"

for url in "${urls[@]}"
do
    echo "Sending GET request to $url"
    # Sử dụng curl để gửi yêu cầu GET với User-Agent và thiết lập timeout không giới hạn
    curl -A "$user_agent" -m 0 "$url"
done
