.. _f-discourspolitique: module ``td_1a.discours_politique`` =================================== Short summary +++++++++++++ module ``ensae_teaching_cs.td_1a.discours_politique`` Retrive political speeches from Internet :githublink:`%|py|7` Functions +++++++++ +----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +======================================================================================================================+=========================================================================================================================+ | :func:`enumerate_speeches_from_elysees ` | Enumerates speeches from the :epkg:`Elysees`. | +----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :func:`force_unicode ` | Deals with unicodes. | +----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :func:`get_elysee_speech_from_elysees ` | Retrieves the text from the :epkg:`Elysees`. | +----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :func:`html_unescape ` | Removes :epkg:`HTML` or :epkg:`XML` character references and entities from a text string. keep ``&``, ``>``, ... | +----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :func:`remove_accent ` | Replaces French accents by regular letters. | +----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :func:`xmlParsingLongestDiv ` | Extracts the longest div section. | +----------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: ensae_teaching_cs.td_1a.discours_politique :members: :special-members: __init__ :show-inheritance: