Code Monkey home page Code Monkey logo

access-checker's People

Contributors

avanier avatar bbpennel avatar bradley-benjamin26 avatar kspurgin avatar ldss-jm avatar

Stargazers

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

Watchers

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

access-checker's Issues

wiley online library SSLException

Checking wiley / wiley online library URLs gives this error:
org/apache/http/conn/ssl/AbstractVerifier.java:228:in `verify': javax.net.ssl.SSLException: hostname in certificate didn't match: <onlinelibrary.wiley.com> != <.literatumonline.com> OR <.literatumonline.com> OR <literatumonline.com>

We have not tried to address this issue in the current celerity-based build. The issue does not affect a non-celerity-based build which is being developed and we expect might be released in the upcoming months.

In the meantime, if this issue affects you and you need a solution, please comment here and we'll happily either try to fix the issue or make a woking development branch available to you.

jruby: No such file or directory -- access_checker <LoadError> ?

HI. I'm very excited to use but I need some help. I admit I'm not a techy. I followed your instructions: downloaded JRuby (version 1.7.3), installed Celerity and Highline, formatted my file as a csv with the URLs in the last right column. When I tried to run the jruby -S access_checker.rb with my input file location and output file location I get the following error message:

jruby: No such file or directory -- access_checker

What have I done wrong? Any help is greatly appreciated!

Wiley check no longer discerns full text access

Previously the script worked for Wiley but this week I noticed that it no longer can distinguish full text access from free access. It's unclear if Wiley changed their pages or if there's something else going on. The script can still find the DOI errors and Check access manually issues.

Here's an example input"
Title,ISBN,URL Biological knowledge discovery handbook,1118617150 (electronic bk.);9781118617151 (electronic bk.),http://dx.doi.org/10.1002/9781118617151 How to teach in clinical settings /,1118620887 (electronic bk.);1118620909 (electronic bk.);1118620925 (electronic bk.);9781118620885 (electronic bk.);9781118620908 (electronic bk.);9781118620922 (electronic bk.),http://dx.doi.org/10.1002/9781118620885
Both give me output for Full access (free) but only the first one should have that access status and the second should return Full access.

Ebrary Validation Included False Negatives

I'm a noob to github, so please excuse (and advise of) any etiquette failures. I attempted to use this script with the ebrary platform and found that the script was providing false negatives (ie indicating full access when I that was not the case). The text in the original script that triggered the no access seems to be: "if page.include?("Document Unavailable.")" however, that string, with the "" did not appear on the page for me. I updated the string (because the code is so clear and clean) to be "Sorry, this ebook is not available at your library" with no slash and that gave me correct results. However, since I know nothing about ruby, I wasn't sure if the slash was used for some other purpose. If you can advise, that would be great. Also, I wanted to make sure I made note so that other users wouldn't get false negatives and assume access. Thanks!

elsif package == "ebr"
sleeptime = 1
if page.include?("Sorry, this ebook is not available at your library")
access = "No access"
elsif page.include?("Date Published")
access = "Full access"
else
access = "Check access manually"
end

script indicated full access for this page:
image

Sleep functionaility

Hi,

I looked through the code and did not see any sleep function. I am a little concerned about checking ~40k ebooks for a single vendor. Won't they get a little upset at this, if I keep pinging them.

Code for adding a Gale Academic One FIle Package

elsif package == "gale"
if page.include?("The document you requested could not be found")
access = "not found"
elsif
page.include?("error")
access = "error"
elsif page.include?("About this Publication")
access = "access ok"
else
access = "check"
end

example of the script

NOT AN ISSUE BUT THIS EXAMPLE MIGHT HELP FOR WINDOWS:
jruby -S access_checker.rb "C:\Users\notcjwwhitec2\Documents\ebookcheck\galebook.csv" "C:\Users\notcjwwhitec2\Documents\ebookcheck\galetout.csv"

Allow the program to create the output file.

THIS IS AN INCREDIBLY USEFUL TOOL. IT HAS BEEN NEEDED FOR YEARS!!!!!!

.

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.