Albatta, bu erda sizda Python-da asosiy kod bor, u BeautifulSoup yordamida har qanday Vikipediya maqolalarini skrap qilib, maqola sarlavhasini va eng ko'p takrorlanadigan so'zni JSON formatida qaytaradi: makefile import requests from bs4 import BeautifulSoup import json url = input("Vikipediya maqolasi URL-ni kiriting: ") So'ng response = requests.get(url) soup = BeautifulSoup.response.text, "html.parser") # Maqola sarlavhasini oling title = soup.findid(first="Headingtext"). # Maqola matnini oling text = soup.findid="mw-content-text"). # Barcha matnni kichik harflarga aylantirib, har bir maqola sarlavha muammolarini oldini olish uchun katta harflardan foydalanish. text = text
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence