GVertigang adlı üyeden alıntı: mesajı görüntüle
Aşağıdaki Python betiğini deneyebilirsiniz.
import requests
from bs4 import BeautifulSoup

def get_post_links(base_url):
    response = requests.get(base_url)
    if response.status_code != 200:
        print(f"Hata: {response.status_code} kodu ile yanıt alındı.")
        return []

    soup = BeautifulSoup(response.content, 'html.parser')
    post_links = []

    # Yazıların linklerini bul
    for post in soup.find_all('a', {'class': 'entry-title-link'}):
        post_link = post['href']
        post_links.append(post_link)

    return post_links

if __name__ == "__main__":
    base_url = "https://www.websiteniz.com/"  # Wordpress sitesinin ana sayfası
    post_links = get_post_links(base_url)

    # Yazı linklerini liste olarak yazdır
    for link in post_links:
        print(link)

Teşekkür ederim hocam sağolun.