import datetime
import PyRSS2Gen

rss = PyRSS2Gen.RSS2(
    title = "OP huy",
    link = "https://2...content-available-to-author-only...h.hk/pr/res/827944.html",
    description = "Coder roulette",
    lastBuildDate = datetime.datetime.now(),
    items = [
       PyRSS2Gen.RSSItem(
         title = "HangMan",
         link = "https://2...content-available-to-author-only...h.hk/pr/res/827944.html",
         description = "Hangman is a paper and pencil guessing game for two or more players."
                       " One player thinks of a word, phrase or sentence and the other tries"
                       " to guess it by suggesting letters or numbers, within a certain number of guesses.",
         guid = PyRSS2Gen.Guid("https://i...content-available-to-author-only...e.com/jdKgKJ"),
         pubDate = datetime.datetime(2016, 8, 30, 14, 55)),
       PyRSS2Gen.RSSItem(
         title = "RSS Feed Creator",
         link = "https://2...content-available-to-author-only...h.hk/pr/res/827944.html",
         description = "RSS Feed Creator generate news feed standart rss",
         guid = PyRSS2Gen.Guid("https://i...content-available-to-author-only...e.com/blablabla"),
         pubDate = datetime.datetime(2016, 9, 8, 14, 54)),
    ])

rss.write_xml(open("MyNewsFeed.xml", "w"))