İçeriğe geç

Etiket: Hamilelikte ay hesaplaması nasıl yapılır

Hamilelikte Ay Nasıl Hesaplanır

Hamilelikte ay hesaplaması nasıl yapılır? Alternatif olarak, son adetinizin ilk gününden 3 ay çıkarıp 7 gün ekleyebilirsiniz. Örneğin, son adetiniz 11 Nisan’da başladıysa, 3 ay geriye sayın ve beklenen doğum tarihinizi bulmak için 11 Ocak tarihine 7 gün ekleyin. Hamile kaldığın ay nasıl hesaplanır? Son adetin ilk gününü bilmek, gebelik tarihini hesaplamak için temel veri kaynağıdır. Yani, gebelik tarihi son adet döneminin ilk gününe göre hesaplanır. Ancak, gebeliğin başlangıcı adetin ilk günü değildir. Gebeliğin başlangıcı, bu ilk günden sonraki 14. gün olarak kabul edilir. Hamilelikte 1 ay kaç gündür? Çünkü 1 ay 4 haftaya eşit değildir. 1 ay yaklaşık olarak…

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