I am using feedparser to pull some data from a news channel RSS page.There are around 54 title in the page.However I want to print for example 10 details.I tried over and over but i couldn't do that.
Could you help me.
import feedparserurl = ('http://feeds.bbci.co.uk/turkce/rss.xml')details = feedparser.parse(url)def news(d): n = 0 for i in d: n+=1 print(n , '.news ') print(i.title) print(i.link) print('')news(details.entries)
You can see the code on live and try:
https://repl.it/repls/AppropriateSufficientMaps#main.py
Thanks