Giter VIP home page Giter VIP logo

ifcebvd's Introduction

IFCEbvd

IFCE Biblioteca Virtual Downloader

Ferramenta de download de livros da biblioteca virtual do IFCE. Baixa página a página como imagem e depois converte para pdf. É necessário uma matricula válida do IFCE.

sintaxe:

$ python ifcebvd.py [matricula] [id do livro]

Dependências

  1. Biblioteca Selenium, para automatizar a interação com a página web.

$ pip install -U selenium

  1. Para juntar as imagens e montar o PDF, escolha o pacote de seu agrado. No linux, minha escolha foi o convert do pacote Imagemagick. Para instalá-lo:

$ sudo apt-get install imagemagick

Outras opções podem ser utilizada, apenas mudando o comando de saida na linha 71 do script.

  1. Caso o browser a ser interagido seja o phantomJS

$ sudo apt-get install phantomjs

Senão, mudar a linha 21 para:

b=webdriver.Firefox()

As versões do selenium a partir do v4.0.0-alpha.1 deprecaram o suporte a phantomJS, ao inves
disto, pedem para que se user o chrome ou firefox em modo headless, conforme demonstrado a seguir:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_argument('--headless')
options.add_argument('--disable-gpu')
driver = webdriver.Chrome(CHROMEDRIVER_PATH, chrome_options=options)

OSX Todos os passos de instalação previamente descritos são, considerando que o brew estaá instalado:

pip install -U selenium
brew install phantomjs
brew install imagemagick

ifcebvd's People

Contributors

alynnefs avatar paoloo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

ifcebvd's Issues

Help

Hello!

First of all congratulations!

I've seen the forks of this project but I didn't see nothing that can be applied to general..I mean, for every university that is associated with bv4.digitalpages .

I don't know nothing about Python or any other code but do you guys think is possible to create something like that...knowing that the download source is the same...the only difference is how to login and add the university name?

Greetings!

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.