Giter VIP home page Giter VIP logo

ebsco-downloader's Introduction


Ebsco Downloader

A collection of tools to download ebooks
Built with โค๏ธŽ

DISCLAIMER, THIS IS ONLY FOR EDUCATIONAL PURPOSES ONLY.

This project is to be used for educational purposes only. I am not liable for any violation of the law that applies in your country nor for any other illegal actions or problems that may arise from the use of this project.

๐Ÿš€ Setup

  1. Install Python >=3.7
  2. Run pip install ebsco-dl as administrator.
    ebsco-dl is not available on pypi currently, so you have to install it by cloning this repository to your disk and run pip install . inside the folder that contains the setup.py.
  3. Read the Usage section
For Experts: Click here for alternatively Setup using a virtual environment
  1. Install Python >=3.7 and git
  2. Install virtualenv: pip install virtualenv
  3. Create a directory in that you want to install ebsco-dl; open a terminal inside of it
  4. Clone this repository inside of that folder: git clone https://github.com/C0D3D3V/Ebsco-Downloader.git .
  5. Run virtualenv venv to create the virtual environment (on Windows use venv\Scripts\activate)
  6. Run source venv/bin/activate to activate the virtual environment (on Windows use venv\Scripts\activate)
  7. Install ebsco-dl: pip install .

To deactivate the virtual environment run: deactivate

Usage

For an easy copy of the cookies, you can install an Add-On like cookies.txt for Firefox or for Chrome. Export the cookies of your login page (e.g. of ukzn.idm.oclc.org or gobi3.com) to a cookies.txt file.

Alternatively, you can create the cookies.txt file yourself, keep in mind it needs to be in Netscape format like this (a3azaHajajaLada is the cookie):

# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This is a generated file!  Do not edit.

.idm.oclc.org	TRUE	/	FALSE	2147483647	ezproxy	a3azaHajajaLada
#HttpOnly_.idm.oclc.org	TRUE	/	FALSE	2147483647	ezproxyl	a3azaHajajaLada
#HttpOnly_.idm.oclc.org	TRUE	/	TRUE	2147483647	ezproxyn	a3azaHajajaLada

Copy the cookies.txt file to the directory where you want to download the books. Open a terminal inside of that directory.

Open an ebook on your library in your browser, so you get a link that looks like this: https://web-p-ebscohost-com.ukzn.idm.oclc.org/ehost/ebookviewer/ebook/somebookidentifier?sid=yoursessionid@redis&vid=0&format=EK&rid=1

or like this: https://web.p.ebscohost.com/ehost/ebookviewer/ebook?sid=yoursessionid%40redis&vid=0&format=EB

or like this: https://web.p.ebscohost.com/ehost/ebookviewer/ebook/somebookidentifier?sid=yoursessionid@redis&vid=3&lpid=lp_5&format=EB

You can download this book now using this command: ebsco-dl https://web.p.ebscohost.com/ehost/ebookviewer/ebook?sid=yoursessionid%40redis&vid=0&format=EB. The book will be downloaded in the current working directory, you can change this behavior by using the --path option.

If you run into certificate problems you can add -scv to the command, so that the certificate is not validated.


๐Ÿ† Contributing

Do you have a great new feature idea or just want to be part of the project? Awesome! Every contribution is welcome!

โš–๏ธ License

This project is licensed under the MIT License - see the LICENSE file for details

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.