Skip to content

Commit

Permalink
Reto mouredev#18 - python
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramsd committed May 2, 2023
1 parent d8828e9 commit 55229f5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Retos/Reto #18 - WEB SCRAPING [Difícil]/python/pyramsd.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 55229f5

Please sign in to comment.