7 696
مشترکین
+224 ساعت
+907 روز
+12830 روز
آرشیو پست ها
سكربت يعطيك شعر عشوائي مع كل تشغيله ( يفيد أصحاب قنوات الشعر ) 🥹
from bs4 import BeautifulSoup
import requests
response = requests.get("https://www.aldiwan.net/random").content
soup = BeautifulSoup(response, 'html.parser')
title = soup.find('meta', {'property': 'og:title'})['content'].strip()
author = soup.find('meta', {'name': 'author'})['content'].strip()
poem = soup.find('div', {'id': 'poem_content'})
poem_ = [line.get_text().strip() for line in poem.find_all('h3')]
print("عنوان : ", title)
print("الشاعر : ", author)
print("الشعر : ")
for line in poem:
print(line)
@A_1_1_T 💻 , @SSUU_Rطبعا مسحنا كل شيء عشان نبدو من جديد و بنزل نفس الادوات القديمه مع تطوير ⭐️ 🩶
