Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to pull author, title using ISBN (WWW::Scraper::ISBN)?

by Perl300 (Friar)
on Apr 15, 2019 at 21:31 UTC ( [id://1232614]=note: print w/replies, xml ) Need Help??


in reply to How to pull author, title using ISBN (WWW::Scraper::ISBN)?

I don't think I can use this module :-( Is there any other way I can get books details using ISBN? Without using this module?

Error is:

$@: Error GETing https://isbn.nu/9780134511184: Protocol scheme 'https +' is not supported (LWP::Protocol::https not installed) at ~/perl5/pe +rlbrew/perls/perl-5.28.1/lib/site_perl/5.28.1/WWW/Scraper/ISBN/ISBNnu +_Driver.pm line 59.

When I tried to install LWP::Protocol::https using cpanm, it failed

$ cpanm LWP::Protocol::https --> Working on LWP::Protocol::https Fetching http://www.cpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-http +s-6.07.tar.gz ... OK Configuring LWP-Protocol-https-6.07 ... OK ==> Found dependencies: IO::Socket::SSL, Mozilla::CA --> Working on IO::Socket::SSL Fetching http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.066 +.tar.gz ... OK ==> Found dependencies: Net::SSLeay --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/M/MI/MIKEM/Net-SSLeay-1.85.tar +.gz ... OK Configuring Net-SSLeay-1.85 ... OK Building and testing Net-SSLeay-1.85 ... FAIL ! Installing Net::SSLeay failed. See ~/.cpanm/work/1555361542.3618/bui +ld.log for details. Retry with --force to force install it. ! Installing the dependencies failed: Module 'Net::SSLeay' is not inst +alled ! Bailing out the installation for IO-Socket-SSL-2.066. --> Working on Mozilla::CA Fetching http://www.cpan.org/authors/id/A/AB/ABH/Mozilla-CA-20180117.t +ar.gz ... OK Configuring Mozilla-CA-20180117 ... OK Building and testing Mozilla-CA-20180117 ... OK Successfully installed Mozilla-CA-20180117 ! Installing the dependencies failed: Module 'IO::Socket::SSL' is not +installed ! Bailing out the installation for LWP-Protocol-https-6.07. 1 distribution installed
$ cpanm Net::SSLeay --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/M/MI/MIKEM/Net-SSLeay-1.85.tar +.gz ... OK Configuring Net-SSLeay-1.85 ... OK Building and testing Net-SSLeay-1.85 ... FAIL ! Installing Net::SSLeay failed. See ~/.cpanm/work/1555363377.6081/bui +ld.log for details. Retry with --force to force install it. $ vi ~/.cpanm/work/1555363377.6081/build.log Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.34) Configuring Net-SSLeay-1.85 Running Makefile.PL *** Found OpenSSL-1.0.2k installed in /usr *** Be sure to use the same compiler and options to compile your OpenS +SL, perl, and Net::SSLeay. Mixing and matching compilers is not supported.

I tried force installing the module LWP::Protocol::HTTPS & Net::SSLeay but it fails. The log file for installation shows error about a missing C header file:

SSLeay.xs:163:25: fatal error: openssl/err.h: No such file or director +y #include <openssl/err.h> ^ compilation terminated.

2019-04-16 Athanasius fixed over-long code line

Replies are listed 'Best First'.
Re^2: How to pull author, title using ISBN (WWW::Scraper::ISBN)?
by afoken (Chancellor) on Apr 16, 2019 at 07:16 UTC
    Is there any other way I can get books details using ISBN? Without using this module?

    Note that both databases are not complete, and both may contain some garbage data.

    Also note that ISBNs should be unique, but they are not. I have several pairs of books with different title, different author, different content, but identical ISBNs. It seems several publishers reuse ISBNs over time.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^2: How to pull author, title using ISBN (WWW::Scraper::ISBN)?
by bangor (Monk) on Apr 15, 2019 at 22:34 UTC
    *** Found OpenSSL-1.0.2k installed in /usr

    SSLeay.xs:163:25: fatal error: openssl/err.h: No such file or directory

    Looks like Net::SSLeay is having trouble finding a compatible version of openssl - what operating system are you on?
      Thank you for your response bangor. I am on:
      $ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo)

        In that case, the RPM you need is openssl-devel. Install that (or politely ask your sysadm to do it for you) as it includes the required headers.

        Did you get any further with this? First thing I would try is to install (or upgrade) openssl
        yum install openssl
Re^2: How to pull author, title using ISBN (WWW::Scraper::ISBN)?
by marto (Cardinal) on Apr 16, 2019 at 07:06 UTC

    The README lists prerequisites, you need the appropriate development package.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1232614]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-07-17 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.