|
المشاركات الشائعة من هذه المدونة
ترجمة
import requests from bs4 import BeautifulSoup def translate_ar_to_en(text): """Translates text from Arabic to English. Args: text: The text to translate. Returns: The translated text. """ # Set the HTTP headers. headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36", "Accept-Language": "en-US,en;q=0.9", } # Make the HTTP request. response = requests.get( "https://translate.google.com/translate_a/single?client=t&sl=ar&tl=en&dt=t&q=" + text, headers=headers, ) # Parse the HTTP response. soup = BeautifulSoup(response.content, "html.parser") # Get the translated text. translated_text = soup.find("span", {"class": "tlid-translation"}).text # Return the translated text. return translated_text
books
<a href="https://mega4up.com/oifdebi81wk8" target=_blank>Chess Guide Vol. 1.apk - 9.2 MB</a> <a href="https://mega4up.com/dkd7g4ww6txi" target=_blank>Hertan, Charles - Forcing chess moves _ the key to better calculation (2008, New in Chess) - libgen.lc.pdf - 17.6 MB</a> <a href="https://mega4up.com/3f2acxa3foxw" target=_blank>Jan Timman - On The Attack_ The Art of Attacking Chess According to the Modern Masters (2006, New In Chess,Csi) - libgen.lc.pdf - 33.4 MB</a> <a href="https://mega4up.com/uomfywgalfi9" target=_blank>Leslie Ault - The Genesis of Power Chess_ Effective Winning Technique for Strategy and Tactics (1994, Thinkers Pr Inc _ Chessco) - libgen.lc.pdf - 7.1 MB</a> <a href="https://mega4up.com/mqzpycgw14dp" target=_blank>M. Euwe, H. Kramer - The Middlegame, Book 2_ Dynamic & Subjective Features (Algebraic Editio...
تعليقات
إرسال تعليق