From 78383b6e4f675883bc16a6abc675edd2a3935502 Mon Sep 17 00:00:00 2001 From: ShinMugenNoKabe Date: Sat, 29 Jul 2023 23:13:11 +0200 Subject: [PATCH] Reto #18 - Python --- .../python/ShinMugenNoKabe.py" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/python/ShinMugenNoKabe.py" diff --git "a/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/python/ShinMugenNoKabe.py" "b/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/python/ShinMugenNoKabe.py" new file mode 100644 index 0000000000..ddd498c3fa --- /dev/null +++ "b/Retos/Reto #18 - WEB SCRAPING [Dif\303\255cil]/python/ShinMugenNoKabe.py" @@ -0,0 +1,11 @@ +from bs4 import BeautifulSoup +import requests + +request = requests.get("https://holamundo.day/") +scrap = BeautifulSoup(request.content, "html.parser") + + +blockquotes = scrap.find_all("blockquote", attrs={"class", "BlockquoteElement___StyledBlockquote-sc-1dtx4ci-0 slate-BlockquoteElement notion-quote unset-width"}) + +for block in blockquotes[21:]: + print(block.text) \ No newline at end of file