Click here to Skip to main content
15,900,108 members

Comments by Member 14123629 (Top 1 by date)

Member 14123629 20-Jan-19 4:44am View    
Thanks! I did this and can get a list of the image urls but I still don't know how to get to the individual elements. :(

from bs4 import BeautifulSoup
import requests

source = requests.get('http://rss.cnn.com/rss/edition.rss')

soup = BeautifulSoup(source.text, 'xml')


#media = media.find_all("url")

for url in soup.find_all("media:content"):
print(url)