Europarser
Parsing d'articles de presse pour extraire le contenu et le transformer en des formats d'analyse comme TXM ou Iramuteq.
This readme is also available in English
Table des matières
Installation
Vous aurez besoin soit de python soit de docker pour pouvoir utiliser Europarser sur votre ordinateur.
Python
Europarser est disponible sur PyPi, vous pouvez l'installer avec pip à l'aide de la commande suivante:
pip install europarser
Vous pouvez ensuite vérifier que l'installation s'est bien passée en lançant europarser à l'aide de europarser --api
Docker
docker run -p 8000:8000 --name europarser ceressorbonne/europarser
Le serveur sera accessible sur localhost:8000, vous pouvez également spécifier un autre port de la manière suivante:
docker run -p [port souhaité]:8000 --name europarser ceressorbonne/europarser
Développement
Pour installer Europarser en mode développement, vous pouvez cloner le dépôt git et installer les dépendances avec pip:
git clone https://github.com/CERES-Sorbonne/EuropressParser.git
cd EuropressParser
pip install -e .
Usages
Usage basique
from pathlib import Path
from europarser.main import main
from europarser.models import Params
folder = Path('/path/to/your/articles')
# As a list, you can choose between "json", "txm", "iramuteq", "csv", "stats", "processed_stats", "plots", "markdown" or any combination of them
outputs = ["json", "txm", "iramuteq", "csv", "stats", "processed_stats", "plots", "markdown"]
params = Params(
minimal_support_kw=5,
minimal_support_authors=2,
minimal_support_journals=8,
minimal_support_dates=3,
)
main(folder, outputs, params=params)
Usage sous forme d'API web
-
Installez le package
pip install europarser
-
Lancez le serveur avec la commande suivante
europarser --api [--host HOST] [--port PORT]
-
Allez sur localhost:8000 (par défaut) pour accéder à l'interface de l'API
Usage en ligne de commande
-
Installez le package
pip install europarser
-
Utilisez la commande suivante pour parser un dossier
europarser --folder /path/to/your/articles --output [one of "json", "txm", "iramuteq", "csv", "stats", "processed_stats", "plots", "markdown"] [--output other_output] [--minimal-support-kw 5] [--minimal-support-authors 2] [--minimal-support-journals 8] [--minimal-support-dates 3]
Exemple
europarser --folder /path/to/your/articles --output json --output txm --minimal-support-kw 5 --minimal-support-authors 2 --minimal-support-journals 8 --minimal-support-dates 3
License
europarser est distribué sous les termes de la licence AGPLv3.
Metadata
Release files for europarser 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| europarser-0.3.5.tar.gz | 3.1 MB | With provenance | Details for europarser-0.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| europarser-0.3.5-py3-none-any.whl | Python 3 | none | any | Details for europarser-0.3.5-py3-none-any.whl |
Total release size: 6.2 MB
Release files / europarser-0.3.5.tar.gz
| Download URL | europarser-0.3.5.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be512eda8afbaafcbaa7a1f770773a6504bc8cd85bb28e278f1119290ce2ddf5
|
|
BLAKE2b-256 checksum How to use checksums |
020a8fb7ba9dc438b3bf24dea6e4b42aa7f08ad93d64630e7dd45359d1d87525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2025.
Transparency logRelease files / europarser-0.3.5-py3-none-any.whl
| Download URL | europarser-0.3.5-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bdb4c88261c7d689d94a7c66983632d4d4a08a4749150b1949ff5cab8c40fdd
|
|
BLAKE2b-256 checksum How to use checksums |
9c00f488b94f0c260bc819a3c9702bf752c570e7db738b55d0cf42202d288c3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2025.
Transparency logSecurity for europarser 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for europarser-0.3.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.