module automation.rss_teachings_blog
#
Short summary#
module ensae_teaching_cs.automation.rss_teachings_blog
Function to capture RSS stream from modules for this teachings.
Functions#
function |
truncated documentation |
---|---|
Creates a database if it does not exists, adds a table for blogs and posts, updates the database, starts a server and … |
Documentation#
Function to capture RSS stream from modules for this teachings.
- ensae_teaching_cs.automation.rss_teachings_blog.rss_teachings_update_run_server(dbfile=None, xml_blogs=None, port=8093, browser=None, period='week', server=None, thread=False)#
Creates a database if it does not exists, adds a table for blogs and posts, updates 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.
- Paramètres:
dbfile – (str) sqllite database to create
xml_blogs – (str) xml description of blogs (google format)
port – 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")