diff --git "a/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/python/pyramsd.py" "b/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/python/pyramsd.py" new file mode 100644 index 0000000000..dd2157ac52 --- /dev/null +++ "b/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/python/pyramsd.py" @@ -0,0 +1,18 @@ +from bs4 import BeautifulSoup +import requests + +url = "https://holamundo.day/" +page = requests.get(url) +soup = BeautifulSoup(page.content, "html.parser") + +main = soup.find_all("blockquote", class_="BlockquoteElement___StyledBlockquote-sc-1dtx4ci-0 slate-BlockquoteElement notion-quote unset-width") + +eventos = [] + +for i in main: + i = i.text + eventos.append(i) + +print("EVENTOS 8 DE MAYO:\n-------------------") +for j in eventos[19:]: + print(j)