Skip to content

Commit

Permalink
Merge pull request mouredev#3306 from blackriper/blackriper
Browse files Browse the repository at this point in the history
Reto mouredev#18- python
  • Loading branch information
Roswell468 authored May 2, 2023
2 parents cbe4116 + 1d8ae0a commit 88f038a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Retos/Reto #18 - WEB SCRAPING [Difícil]/python/blackriper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from requests_html import HTMLSession
"""
instalar libreria pip install requests_html
"""



def main():
# iniciar objeto de sesion y obtener la pagina
session=HTMLSession()
page=session.get("https://holamundo.day")

"""
al inspecionar la pagina puedes ver que cada evento de la
charla usa una etiqueta blockquote solo hay que ver cuantos elementos son
y traer el rango en este caso [19:34]
postd: los conte de manera manual para saber el rango debe de haber una mejor manera
de hacerlo
"""

for event in page.html.find("blockquote")[19:34]:
print(event.text)

if __name__=='__main__':
main()

0 comments on commit 88f038a

Please sign in to comment.