Skip to content

Instantly share code, notes, and snippets.

@cyb3rsalih
Last active September 27, 2025 03:19
Show Gist options
  • Select an option

  • Save cyb3rsalih/238117f458ecdcd92e2d310655d6e965 to your computer and use it in GitHub Desktop.

Select an option

Save cyb3rsalih/238117f458ecdcd92e2d310655d6e965 to your computer and use it in GitHub Desktop.
Find Turkish Newspaper for a Date; - Updated. Old site is now has payment wall. I found free
import concurrent.futures
import requests
gazeteler = [
"agac",
"ahali_filibe",
"akis",
"aksam",
"anadolu",
"aydede",
"balkan_filibe",
"birgun",
"bugun_2005",
"bugun",
"buyuk_dogu",
"commodore",
"cumhuriyet",
"diyojen",
"haber",
"hakimiyeti_milliye",
"halkin_sesi",
"hayat",
"her_ay",
"ikaz",
"ikdam_sabah_postasi",
"iradei_milliye_sivas",
"kadro",
"kurun",
"milli_gazete",
"milliyet",
"peyam",
"radikal",
"sebilurresad",
"serbes_cumhuriyet",
"servet",
"serveti_funun",
"servetifunun_uyanis",
"son_posta",
"son_telgraf",
"sozcu",
"takvimi_vekayi",
"tan",
"tanin_yeni",
"tanin",
"taraf",
"tasviri_efkar",
"turk_dili",
"ulus",
"ulusal_birlik_izmir",
"vakit",
"vatan",
"yarın",
"yarim_ay",
"yeni_asir",
"yeni_istanbul",
"yeni_sabah",
"yeni_safak",
"yenigun_antakya",
"zafer",
"zaman",
]
tarih = input("YYYY-AA-GG Tipinde Tarih giriniz: ")
def fetch_gazete(gazete):
url = f"https://www.gastearsivi.com/gazete/{gazete}/{tarih}/1"
r = requests.get(url)
if r.status_code == 200:
print(
f"{gazete} gazetesi {tarih} tarihli sayısı bulundu.\n==> https://www.gastearsivi.com/gazete/{gazete}/{tarih}/1\n\n"
)
# Adjust the number of threads in the pool
pool_size = 10
with concurrent.futures.ThreadPoolExecutor(max_workers=pool_size) as executor:
executor.map(fetch_gazete, gazeteler)
print("Bitti")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment