Created
July 16, 2020 21:28
-
-
Save mauroeparis/0108932c851bede87c7bafcc5f41749c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %% 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