HomeAboutCodePastes

Paste on 2021-04-23T22:23:54

import BeautifulSoup
import requests

def rae_conjugación(word):
    text = requests.get(f"https://dle.rae.es/{word}").text
    soup = BeautifulSoup(text, 'html.parser')
    conj_table = soup.find('table',attrs={'class':'cnj'})
    return conj_table






plain