<h2id="Install">Install<aclass="anchor-link"href="#Install"></a></h2><p>TODO : push it to Pipy when :</p>
<h2id="How-to-install-the-package">How to install the package<aclass="anchor-link"href="#How-to-install-the-package"></a></h2><p>TODO : push it to Pipy when :</p>
<ul>
<li>Rename "nom" to name in users</li>
<li>reactivate unit tests (<ahref="https://docs.github.com/en/actions/guides/creating-postgresql-service-containers">https://docs.github.com/en/actions/guides/creating-postgresql-service-containers</a>)</li>
<h2id="How-to-use">How to use<aclass="anchor-link"href="#How-to-use"></a></h2>
<h2id="How-to-use-the-package-in-your-project">How to use the package in your project<aclass="anchor-link"href="#How-to-use-the-package-in-your-project"></a></h2>
<h2id="How-we-use-it">How we use it<aclass="anchor-link"href="#How-we-use-it"></a></h2><p>We get the tweets of the 577 French Parliament member's every 8 hours and store them in a PostgreSQL database.</p>
<p>We then explore them with Apache Superset.</p>
<h3id="How-we-deploy-it">How we deploy it<aclass="anchor-link"href="#How-we-deploy-it"></a></h3><p>Prepare the environment :</p>
<p>The script <em>archiveur.py</em> use the package to get the parliament accounts from <ahref="https://github.com/regardscitoyens/twitter-parlementaires">https://github.com/regardscitoyens/twitter-parlementaires</a></p>
<p>The parameters is read in a <em>.env</em> file.</p>
<p>It is launched by the <em>entrypoint.sh</em> script every 8 hours.</p>
<p>To stop it :</p>
<divclass="highlight"><pre><span></span>docker-compose down
</pre></div>
<p>The data is kept in a docker volume, to clean them :</p>
<divclass="highlight"><pre><span></span>docker-compose down -v