Skip to content

Instantly share code, notes, and snippets.

@mauroeparis
Created July 16, 2020 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauroeparis/0108932c851bede87c7bafcc5f41749c to your computer and use it in GitHub Desktop.
Save mauroeparis/0108932c851bede87c7bafcc5f41749c to your computer and use it in GitHub Desktop.
# %% primera celda para instalar `feedparser` en caso de no estar instalado
if 'feedparser==5.2.1' not in sys.modules:
!pip install 'feedparser==5.2.1'
# %% segunda celda import + feed
import feedparser
feeds = ['https://www.lavoz.com.ar/rss/tecnologia.xml']
# %% Tercera parsear con feedparser + juntar los titulos en un array
parsed = feedparser.parse(feeds[0])
posts = parsed.entries
titles = [p["title"] for p in posts]
titles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment