Code Monkey home page Code Monkey logo

archiveorgimagedownloader's Introduction

[NOT WORKING ANYMORE]

I've tried to fix the issues arised by @hamensman that keeps downloading the first page, but later while debugging I found out that it looks like archive.org has disabled the "downloading-by-link-iteration" method, so there's no fix, and there will be no more from me.

archiveOrgImageDownloader

This is a modified and improved version of the harrcor's repository.
The script is most useful to be used on a protected book that needs to be borrowed, and that you can't download it by using the encrypted epub/pdf links. So, this script will download the image of the borrowed book one by one.

Requirements

  • Operating system: Linux or Windows I used Linux to modify this script, so in order to use Windows, you will need to change this one line from
    driver = webdriver.Chrome("./chromedriver", options=chrome_options)
    to
    driver = webdriver.Chrome("./chromedriver.exe", options=chrome_options)
  • Python 3.x
  • Git

Dependencies

This script depends on these few libraries:

  • selenium pip3 install selenium

  • requests pip3 install requests

  • Chrome WebDriver If you use Linux, then use the Linux version, same as Windows, use the Windows version.

Usage

Cloning the repository

You will need to clone the repostory by using the git clone command on Linux, or you can use GitHub Desktop application on Windows, or you can do whatever you want to clone it.

Running the script

Linux

On Linux, open your terminal and change to your current working directory.
Then, you will need to execute this command to run the script.
python3 scraper.py
Fill in the details in order to download your book.

Windows

On Windows, open your command prompt and change to your current working directory.
Then, you will need to execute this command to run the script.
python3 scraper.py
Fill in the details in order to download your book.

Example

Your archive.org email account: [email protected]
Your archive.org password: bar123
Your archive.org book link: https://archive.org/details/computationalmet00hann_0
Your download directory/folder (relative to your current working directory): ./book/computationalmet00hann_0
Your pages that will be downloaded: 488
Your quality of images, from 0-10 (lower is better): 0

TODO

  • JPG to PDF converter and combiner into a single file.
  • Make a GUI, if possible and have all the time in the world.
  • Tweaks and stuff.

archiveorgimagedownloader's People

Contributors

opemvbs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

archiveorgimagedownloader's Issues

Keeps downloading the first page

I've done all the steps. The book I found has 296 pages. But when I run the script, it downloads the first page (front cover) 296 times.

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.