İçeriğe geç

Etiket: Soyut örnekler nelerdir

Somut Örnekler Nelerdir

Somut ne demek ve örnekler? Basitçe söylemek gerekirse, beş duyumuzla algılayabildiğimiz kavramlardır. Başka bir deyişle, ellerimizle tutabildiğimiz, gözlerimizle görebildiğimiz veya varlığını hissedebildiğimiz kavramlardır. Örnek: masa, sandalye, su, taş, toprak, hava, defter, kağıt, kalem, silgi, bilgisayar, toprak, kum, elma, armut, dolap, vb. Soyut örnekler nelerdir? Soyut isim, soyut isim veya anlamsal isim; Varlığı düşünce tarafından kabul edilen ve söylendiğinde zihinde belirli bir imge veya resim uyandırmayan kavramların adı: soy, itibar, korku, söz, bilgi, gönül, kötülük, güzellik, gerçek vb. Somutluk nedir örnek? Edebiyatta somutlaştırma konusunu örnek cümleler kullanarak derledik. “Somut” kelimesi beş duyumuzla algılayabildiğimiz kavramları ifade eder. Örneğin taş, kağıt, kalem gibi…

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()