项目作者: Azuxul

项目描述 :
This project exists to dump files form cahier-de-prepa.fr web site. While some students try to recover every file manually, this tool can export most of the files.
高级语言: Python
项目地址: git://github.com/Azuxul/cahier-de-prepa-downloader.git
创建时间: 2019-06-29T14:01:15Z
项目社区:https://github.com/Azuxul/cahier-de-prepa-downloader

开源协议:GNU General Public License v3.0

下载


cdpDumpingUtils

This project exists to dump files form cahier-de-prepa.fr web site. While some students try to recover every file manually, this tool can export most of the files.

DISCLAIMER : THIS TOOL IS NOT MEANT TO DEFEAT INTELLECTUAL PROPERTY, IT IS JUST A TOOL TO HELP STUDENTS.

Installation

Install Python3

  • Automatic installation (recommended)
  1. pip install cdpDumpingUtils
  • Manual installation

Download the repository:

  1. git clone https://github.com/Azuxul/cdpDumpingUtils.git

Install the dependency:

  1. pip install -r requirements.txt

Now you can use cdpDumpingUtils but instead of the cdpDumpingUtils command you have to use this command: python cdpDumpingUtils/main.py

Usage

  1. cdpDumpingUtils -h
  1. usage: cdpDumpingUtils [-h] [--edit-cfg] [-v] [-l USERNAME] [-p PASSWORD] [-o OUTPUT] [-u URL]
  2. options:
  3. -h, --help show this help message and exit
  4. arguments optionnels:
  5. --edit-cfg Modification du fichier de configuration
  6. -v, --verbose Augmente la quantité de texte affiché
  7. -l USERNAME, --username USERNAME
  8. Nom d'utilisateur du compte cahier de prepa (utilisation sans compte possible)
  9. -p PASSWORD, --password PASSWORD
  10. Mot de passe de connexion cahier de prepa
  11. -o OUTPUT, --output OUTPUT
  12. Chemin d'acces du dossier de sortie, par default le dossier actuel
  13. -u URL, --url URL URL de l'instance cahier de prepa

To run cdpDumpingUtils with a config file (if no config file it will be created) :

  1. cdpDumpingUtils -o ./output

To run cdpDumpingUtils and specify an url without an account:

  1. cdpDumpingUtils -u https://cahier-de-prepa.fr/XXX/ -o ./output

To run cdpDumpingUtils and specify an url with an account:

  1. cdpDumpingUtils -u https://cahier-de-prepa.fr/XXX/ -l username -p password -o ./output

Limitations

This tool may be unusable if cahier-de-prepa is updated. This tool only download documents. Grades, calendars and other features of cahier-de-prepa are not implemented.

License

This project is licensed under the GNU General Public License v3.0