GithubHelp home page GithubHelp logo

nicorenard / symlists_extractor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 17 KB

Retrieve from a SYMPA server the list of mailing lists registered as a member of another mailing list and not included as good practice dictates

License: GNU General Public License v3.0

Python 100.00%
python sympa zeep

symlists_extractor's Introduction

Utilitaire CLI : symlists_extractor

Objectif

Récupérer d'un serveur SYMPA, la liste des listes de diffusions inscrite en tant que membre d'une autre liste de diffusion et non incluse comme le veut la bonne pratique... ;) Ce script utilise la librairie sympasoap pour fonctionner.

Utilisation

  • Avoir python d'installé (v3.12)
  • Créer un environnement virtuel :
    • $ python -m venv .venv
  • Le lancer:
    • $ source .venv/bin/activate (Linux)
    • $ call C:\chemin\vers\projet\env_nom_du_projet\Scripts\activate.bat (windows)
    • ou C:\chemin\vers\projet\env_nom_du_projet\Scripts\Activate.ps1 (windows powershell)
  • Installer avec pip les dépendances du fichier requirements.txt
    • $ pip install -r requirements.txt
  • Dans un terminal, à la racine du script faire la commande suivante -environnement virtuel activé- :

$ python symlist_extractor.py *arg1 *arg2 *arg3

  • Les arguments sont OBLIGATOIRES dans l'ordre strict suivant :
    • arg1 = url serveur sympa sans /wsdl à la fin ( ex: http://nom_de_domaine.fr/sympa)
    • arg2 = login administrateur ( ex : [email protected]_de_domaine.fr)
    • arg3 = mot de passe administrateur (ex : mon_beau_mdp)

/!\ Note : Mettre plus de 3 arguments => pas de prise en compte et moins de 3 arguments => le script sera en erreur.

Après quelques minutes, vous obtiendrez en résultat un fichier JSON avec la structure suivante dans le dossier du script :

[
  {
     "list_address_name": "security@nom_de_domaine.fr",
     "list_hidden_in_list": "abuse@nom_de_domaine.fr"
  },
  {...}
]

Changlog

2024 : v.0.0.1

Licence

GPLv3

Auteur

Nicolas.renard_at_uha.fr

symlists_extractor's People

Contributors

nicorenard avatar

Watchers

 avatar

Forkers

mielai1l

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.