fork download
  1. import datetime
  2. import PyRSS2Gen
  3.  
  4. rss = PyRSS2Gen.RSS2(
  5. title = "OP huy",
  6. link = "https://2...content-available-to-author-only...h.hk/pr/res/827944.html",
  7. description = "Coder roulette",
  8. lastBuildDate = datetime.datetime.now(),
  9. items = [
  10. PyRSS2Gen.RSSItem(
  11. title = "HangMan",
  12. link = "https://2...content-available-to-author-only...h.hk/pr/res/827944.html",
  13. description = "Hangman is a paper and pencil guessing game for two or more players."
  14. " One player thinks of a word, phrase or sentence and the other tries"
  15. " to guess it by suggesting letters or numbers, within a certain number of guesses.",
  16. guid = PyRSS2Gen.Guid("https://i...content-available-to-author-only...e.com/jdKgKJ"),
  17. pubDate = datetime.datetime(2016, 8, 30, 14, 55)),
  18. PyRSS2Gen.RSSItem(
  19. title = "RSS Feed Creator",
  20. link = "https://2...content-available-to-author-only...h.hk/pr/res/827944.html",
  21. description = "RSS Feed Creator generate news feed standart rss",
  22. guid = PyRSS2Gen.Guid("https://i...content-available-to-author-only...e.com/blablabla"),
  23. pubDate = datetime.datetime(2016, 9, 8, 14, 54)),
  24. ])
  25.  
  26. rss.write_xml(open("MyNewsFeed.xml", "w"))
Runtime error #stdin #stdout #stderr 0.01s 10288KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
ImportError: No module named 'PyRSS2Gen'