Created
September 2, 2019 07:23
-
-
Save shmidtelson/db071a1be582c885b03d26633d28c84a to your computer and use it in GitHub Desktop.
Parse
This file contains 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
import requests | |
from bs4 import BeautifulSoup | |
resp = requests.get("http://static.feed.rbc.ru/rbc/logical/footer/news.rss") | |
soup = BeautifulSoup(resp.content) | |
items = soup.findAll('item') | |
for item in items: | |
print(item.title.text.replace("<![CDATA[", "").replace("]]>", "")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment