module pycode.blog_helper
¶
Short summary¶
module pyquickhelper.pycode.blog_helper
Function which starts a server to grab and read blog post for a mobule based on pyqcuikhelper design. It relies on module pyrsslocal.
Functions¶
function |
truncated documentation |
---|---|
Creates a database if it does not exists, add a table for blogs and posts, update the database, starts a server and … |
Documentation¶
Function which starts a server to grab and read blog post for a mobule based on pyqcuikhelper design. It relies on module pyrsslocal.
- pyquickhelper.pycode.blog_helper.rss_update_run_server(dbfile=None, xml_blogs=None, port=8093, browser=None, period='week', server=None, thread=False)[source]¶
Creates a database if it does not exists, add a table for blogs and posts, update the database, starts a server and open a browser, if dbfile is None, it is set to a default values (in your user directory), if xml_blogs is None, it is given a default value corresponding the the blogs the modules developped for these teachings.
- Parameters:
dbfile – (str) sqllite database to create, if None, the function creates a file in the current folder
xml_blogs – (str) xml description of blogs (google format), if None, the function chooses the string
__blog__
of this module, it can be a file or a stringport – the main page will be
http://localhost:port/
browser – (str) to choose a different browser than the default one
period – (str) when opening the browser, it can show the results for last day or last week
server – to set up your own server
thread – to start the server in a separate thread
Example:
from ensae_teaching_cs.automation import rss_teachings_update_run_server rss_teachings_update_run_server(browser="firefox")