본문 바로가기

L의 공간/Python

[Python] RSS 크롤링

RSS 크롤링
import feedparser

url = "http://bepolar.tistory.com/rss"

d = feedparser.parse(url)
print(d.feed['title'])
for e in d.entries:
    print("Title : " + e.title)
    print("Link : " + e.link)
    print("Description : " + e.description)
    print("Published : " + str(e.published))