Mercurial > hg > index.fcgi > www > www-1
annotate myrss2/myrss_test_server.py @ 141:df18c9d8857c
myrss2: FEEDS: Add theconversation.com, remove Coding Horror
author | paulo |
---|---|
date | Sun, 06 Aug 2023 17:34:26 +0000 |
parents | |
children |
rev | line source |
---|---|
paulo@110 | 1 import wsgiref.simple_server |
paulo@110 | 2 import socketserver |
paulo@110 | 3 |
paulo@110 | 4 import myrss_app |
paulo@110 | 5 |
paulo@110 | 6 |
paulo@110 | 7 if __name__ == "__main__": |
paulo@110 | 8 with wsgiref.simple_server.make_server('', 8000, myrss_app.MyRssApp()) as httpd: |
paulo@110 | 9 httpd.serve_forever() |