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

Python Feedparser pubdate to one timezone

$
0
0

I need to parse RSS feed. I am using feedparser on python. Basically my task is to run script every N seconds and check for last feed. I come up with idea to check is date is younger than 15 seconds each iteration. But there is a problem pubDate has different timezone.

'Published_parsed' I think working not correct because it gives me these:

2020-06-17 05:46:45-Wed, 17 Jun 2020 04:46:45 GMT

and this

2020-06-17 11:19:39-Wed, 17 Jun 2020 10:19:39 IST

Thus it's not parsed to one timezone. I tried to check it to each timezone using pytz, but there is no IST timezone, what is not good to me.

How can I parse this varioty of dates to one timezone time.

Wed, 17 Jun 2020 13:12:43 IST

Tue, 16 Jun 2020 21:49:32 GMT


Viewing all articles
Browse latest Browse all 106

Trending Articles



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