İçeriğe geç

Etiket: Feodalizm nedir kısaca tarih

Feodal Bir Tımar Sistemi Ne Demek

Feodal tımar sistemi nedir? Timar sistemi, Osmanlı İmparatorluğu’nda yaklaşık 480 yıl boyunca kullanılan vergi ve arazi yönetim sistemiydi (tarla, toprak). Sahip olduğunuz arazinin değeri yüz bin akçeden azsa buna “Has” denirdi. “Zeamet” ise yüz ila iki yüz bin akçe değerindeki arazileri içeren Dirlik türüne verilen isimdi. Feodal bir sistem ne demek? Feodal yönetim yaklaşımı nedir? Feodal yönetim, ortaçağ Avrupa’sında görülebilen toprak mülkiyeti ve kişisel bağlara dayalı bir sosyal ve ekonomik sistemdir. Bu sistemde krallar topraklarını sadakat karşılığında lordlara verirdi ve lordlar bu toprakları korumak ve yönetmekle yükümlüydü. Tımar sistemi nedir kısa ve öz? Timar sistemi, Osmanlı İmparatorluğu’nda yaklaşık 480 yıl…

Yorum Bırak
import requests import os import shutil import re import random import time from bs4 import BeautifulSoup from concurrent.futures import ThreadPoolExecutor, as_completed def publish_article(site, selected_file, previous_article_link=None, previous_article_title=None): folder_path = r"C:\Users\LENOVO\Desktop\bot2\calismalar\kopyaturkcemakale\cevrildi" eklendi_folder_path = os.path.join(folder_path, "eklendi") if not os.path.exists(eklendi_folder_path): os.makedirs(eklendi_folder_path) eklendi_list_path = os.path.join(eklendi_folder_path, "eklenenliste.txt") file_path = os.path.join(folder_path, selected_file) title = os.path.splitext(selected_file)[0] with open(file_path, "r", encoding="utf-8") as file: content = file.read() username = "oadmin" password = "WLQg krYm MZtk NI55 3of0 ydll" auth = requests.auth.HTTPBasicAuth(username, password) headers = {"Accept": "application/json", "Content-Type": "application/json"} wpBaseURL = f"https://{site}" try: print(f"{site} sitesine bağlanılıyor...") categories_url = wpBaseURL + "/wp-json/wp/v2/categories" response = requests.get(categories_url, auth=auth, timeout=75) categories = response.json() category_id = next((cat["id"] for cat in categories if cat["slug"] == "makaleler"), None) if category_id is None: print(f"{site}: Kategori bulunamadı.") return if previous_article_link and previous_article_title: content += f'\n\n\nTavsiyeli Bağlantılar: {previous_article_title}' post_url = wpBaseURL + "/wp-json/wp/v2/posts" payload = { "status": "publish", "title": title, "content": content, "categories": [category_id] } response = requests.post(post_url, json=payload, headers=headers, auth=auth, timeout=75) print(f"{site} ({title}): {response.status_code}") if response.status_code == 201: new_file_path = os.path.join(eklendi_folder_path, f"{title}.txt") shutil.move(file_path, new_file_path) with open(eklendi_list_path, "a", encoding="utf-8") as log: log.write(title + "\n") print(f"{site}: Makale yayınlandı - {title}") return response.json()["link"], title else: print(f"{site}: Yayın başarısız: {response.status_code}") return None, None except Exception as e: print(f"{site}: Hata oluştu: {e}") return None, None def main(): with open(r"C:\Users\LENOVO\Desktop\bot2\calismalar\trgositelistesiS.txt", "r", encoding="utf-8") as f: sites = [line.strip() for line in f if line.strip()] folder_path = r"C:\Users\LENOVO\Desktop\bot2\calismalar\kopyaturkcemakale\cevrildi" files = [f for f in os.listdir(folder_path) if os.path.isfile(os.path.join(folder_path, f))] random.shuffle(files) previous_article_link = None previous_article_title = None max_workers = 15 with ThreadPoolExecutor(max_workers=max_workers) as executor: futures = [] while files and sites: selected_file = files.pop(0) site = random.choice(sites) future = executor.submit(publish_article, site, selected_file, previous_article_link, previous_article_title) futures.append(future) for future in as_completed(futures): try: result = future.result() if result and result[0]: previous_article_link, previous_article_title = result except Exception as e: print(f"Bir future işlemi hata verdi: {e}") if __name__ == "__main__": main()