Quantcast
Channel: Active questions tagged feedparser - Stack Overflow
Viewing all articles
Browse latest Browse all 106

Printing a list in Python3

$
0
0

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


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>