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

Discord.PY Bot - FeedParser throws TLSV1 alert when reading from previously working RSS feed

$
0
0

My code is as follows:

d = feedparser.parse("https://www.monroecounty.gov/incidents911.rss")    entry = d.entries[num]    i = 0    while i < num:        response = "```\n----------- Event Title -------------\n\n" + d['entries'][i]['title'] +"\n"        response += "\n---------- Event Date --------------\n\n" + d['entries'][i]['published'] +"\n"        response += "\n---------- Description -------------\n\n" + d['entries'][i]['summary'] +"\n```"        i += 1        await ctx.send(response)

When I run the command in question, it returns

{'bozo': True, 'entries': [], 'feed': {}, 'headers': {}, 'bozo_exception': URLError(SSLError(1, '[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1129)'))}

This was working up until recently.

Running on a Raspberry Pi 3b+ with Raspbian Jessie.

Python 3.9.9

discord.py 3.10.0.2


Viewing all articles
Browse latest Browse all 105

Trending Articles



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