İçeriğe geç

Etiket: Astrolojide retro olunca ne olur

Retro Neden Insanları Etkiler

Merkür retrosu insanları nasıl etkiler? Merkür Gerilemesinin etkileri nelerdir? Kararsızlık, yanlış anlaşılmalar, kafa karışıklığı, eski ilişkiler, teknik cihazların arızalanması, durgunluk, tatil planlarında gecikmeler… Burada oldukça uzun bir listeden bahsediyoruz, ancak endişelenmenize gerek yok. Merkür’ü anlıyorsanız, “gerileme” korkulacak bir şey değildir. Astrolojide retro olunca ne olur? Retro kelimesi astrolojide gezegenlerin geriye doğru hareketini ifade etmek için kullanılır. Her gezegenin bir dönüş hızı vardır. Ancak, zaman zaman yavaşlar ve Dünya’nın gözünden bakıldığında, bir süre için Dünya’nın dönüş hızından daha yavaştır. Bu durumda, Dünya’daki gözlemci gezegenin geriye doğru hareket ettiğini algılar. Retro nelere sebep olur? RETRO ETKİSİ NEDİR? Retro etkisi, retro gezegenin yönettiği…

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