[PYTHON] A script that just gets an RSS feed

A simple script that just checks the update status of blogs and the like. As usual, enter the URL of http: // Untara RSS with raw_input.

feed.py



#!/user/bin/env python
# -*- coding: utf-8 -*-
import feedparser

rssurl = raw_input("Feed URL: ")
feed = feedparser.parse(rssurl)

for entry in feed["entries"]:
	title = entry["title"]
	link = entry["link"]
	time = entry["updated"]
	print "Title: ", title
	print "Link: ", link
	print "Time: ", time

Recommended Posts

A script that just gets an RSS feed
A script that takes a snapshot of an EBS volume
A shell script that just emails the SQL execution result
A script that morphologically parses a specified URL
An article that just tries a little HTTP request with the curl command
In Blender, a script that just joins all objects directly under a particular group
"Python Kit" that calls a Python script from Swift
A Python script that crawls RSS in Azure Status and posts it to Hipchat
A python script that gets the number of jobs for a specified condition from indeed.com
Just a note
Story that an inexperienced person made a masked solver
A tool that makes a standalone jar an executable file
A shell script that puts Webmin into Alpine Linux
What's in that variable (when running a Python script)
A script that outputs a list of SoftLayer portal users
A Python script that lists execution history in an environment running many AWS Glue Jobs