Giter Site home page Giter Site logo

amalricbzh / gallicadownloader Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 151 KB

Télécharger un livre depuis Gallica et l'envoyer sur GoogleDrive /!\/!\/!\/!\/!\ Ce projet a été intégré dans une autre application et n'est plus maintenu /!\/!\/!\/!\/!\

License: GNU General Public License v3.0

CSS 2.16% PHP 62.62% HTML 25.41% JavaScript 9.50% ApacheConf 0.31%

gallicadownloader's Introduction

gallicaDownloader

Codacy Badge

Télécharge un livre depuis Gallica (API IIIF) et l'envoie sur votre Google Drive.

Installation

git clone https://github.com/amalricBzh/gallicaDownloader
cd gallicaDownloader
composer update

httpd-vhosts.conf

Remplacez par le chemin sur votre disque

<VirtualHost *:80>
    ServerName gd.localhost
    DocumentRoot "<PATH>\gallicaDownloader"
    <Directory "<PATH>\gallicaDownloader">
        DirectoryIndex index.php
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Pour l'envoi sur Google Drive, si vous utilisez un sous domaine de localhost, il faudra aussi ajouter le locahost car l'authentification Google refuse les sous domaines de localhost.

C:\Windows\System32\drivers\etc (si vous êtes sous windauze)

127.0.0.1         gd.localhost

Certificat cacert.pem

Allez ici : https://curl.haxx.se/ca/cacert.pem et copiez le contenu du fichier sur votre disque (ex : C:\xampp\cacert.pem) Editez votre php.ini et ajoutez ou modifiez la ligne suivante : curl.cainfo = "[cheminVersLeFichier]\cacert.pem"

Google oAuth

Il vous faudra une clef pour l'API Google (Suivez l'étape 1 de la page https://developers.google.com/drive/v3/web/quickstart/php) que vous mettrez dans /data/auth/client_id.json (et non client_secret.json, mais c'est configurable dans src/config.php).

Amélioration et fonctionnalités à implémenter

gallicadownloader's People

Contributors

amalricbzh avatar codacy-badger avatar

Stargazers

Marc Teyssier avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

femotizo

gallicadownloader's Issues

Erreurs à l'initialisation de l'appli

Lorsqu'il n'y a pas encore de répertoire data/downloads ni de fichier de config config.json

Warning: file_get_contents(D:\workspace\gallicaDownloader\src/../data/downloads/config.json): failed to open stream: No such file or directory in D:\workspace\gallicaDownloader\src\Service\ProjetService.php on line 57

Suppression du dernier projet

Lorsqu'on supprime le dernier projet, il n'y a pas d'erreur, mais dans le fichier config.json, on a nbProject = 1.

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.