GithubHelp home page GithubHelp logo

archiveripper's People

Contributors

notevenaperson avatar scoliono 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

archiveripper's Issues

Error: No host supplied

$python3 ./ripper.py
Look for the book's identifier (the part of the url immediately after "https://archive.org/details/").
Enter it here: introductiontonu0000alle
Enter your archive.org email: **********@*****.com
Enter your archive.org password:
Output folder ./introductiontonu0000alle already exists. Continue? yes
Traceback (most recent call last):
File "/home/anton/Downloads/archiveripper-master/./ripper.py", line 92, in
main()
File "/home/anton/Downloads/archiveripper-master/./ripper.py", line 59, in main
page_count = client.fetch_book_metadata()
File "/home/anton/Downloads/archiveripper-master/api.py", line 109, in fetch_book_metadata
res = self.session.get('https:' + match.group(1))
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 573, in request
prep = self.prepare_request(req)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 484, in prepare_request
p.prepare(
File "/usr/lib/python3/dist-packages/requests/models.py", line 368, in prepare
self.prepare_url(url, params)
File "/usr/lib/python3/dist-packages/requests/models.py", line 445, in prepare_url
raise InvalidURL(f"Invalid URL {url!r}: No host supplied")
requests.exceptions.InvalidURL: Invalid URL 'https:{"isBeta":false,"br_ui":null,"urlHistoryBasePath":"/details/introductiontonu0000alle/","resumeCookiePath":"/details/introductiontonu0000alle","initialSearchTerm":null,"purchase_url":"","has_multiple_readable_files":false,"multipleBooksList":{"by_subprefix":{"introductiontonu0000alle":{"url_path":"/details/introductiontonu0000alle","file_subprefix":"introductiontonu0000alle","title":"introductiontonu0000alle_orig_jp2.tar","file_source":"/introductiontonu0000alle_jp2.zip","orig_sort":0}},"main_dir":"/33/items/introductiontonu0000alle"},"autofit":"auto","url":"//ia803003.us.archive.org/BookReader/BookReaderJSIA.php?id=introductiontonu0000alle\u0026itemPath=/33/items/introductiontonu0000alle\u0026server=ia803003.us.archive.org\u0026format=jsonp\u0026subPrefix=introductiontonu0000alle\u0026requestUri=/details/introductiontonu0000alle"}': No host supplied

ERROR: UNAVAILABLE assertion error

Thankyou v much, for creating this script.

Installed on catalina 10.15.6, python3.8
Installed this scripts, dev branch as suggested in other issue.

I have not been able to get a title successful yet. Apologises if I am doing something obvious and silly.

How do I check I have it installed correctly?
or that I am logged in correctly? (So I know it is an issue with the title versus me)

ERROR Message: UNAVAILABLE:

From Terminal

% python3 ripper.py
Look for the book's identifier (the part of the url immediately after "https://archive.org/details/").
Enter it here: chopmarks1987rose
Enter your archive.org email: xxx
Enter your archive.org password: xxx
ERROR:root:error with action browse_book: Unexpected error.
Please email this link to [email protected] with the subject: Unexpected error. Thank you.
Message:UNAVAILABLE
Traceback (most recent call last):
File "ripper.py", line 101, in
main()
File "ripper.py", line 43, in main
client.schedule_loan_book(id)
File "/Users/xxx/DP/MAC/api.py", line 79, in schedule_loan_book
self.borrow_book(book_id)
File "/Users/xxx/DP/MAC/api.py", line 35, in borrow_book
raise AssertionError
AssertionError

License

This is a very useful tool.

What's the license of your code?

Hangs after downloading a few pages

Hey! Thanks for making this! Was looking for something like this and this one actually worked!

For some reason, it downloads a few pages, and then it hangs. If I close it, restart it, and then run with the same settings again, it continues, and then hangs again. It does less than 10 pages/around 10

error received - attempt 3 [book borrowed]

Hello
I still have not managed to get title successful. I must be doing something stupid. Can you please lmk how I can test i have set up correctly.

Steps performed
1 Borrowed book as normal in account
2 In terminal ran the ripper.py script

i entered book ID
ii entered login credentials
script runs then returns error in terminal

Traceback (most recent call last):
File "/Users/xx/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/Users/xx/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/Users/xx/Library/Python/3.7/lib/python/site-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1336, in getresponse
response.begin()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 275, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred...

[error continued][then at end]

Traceback (most recent call last):
File "ripper.py", line 101, in
main()
File "ripper.py", line 54, in main
page_count = client.fetch_book_metadata()
File "/Users/xx/D/MAC/api.py", line 106, in fetch_book_metadata
res = self.session.get(self.URL_FORMAT % ('details/' + self.book_id))
File "/Users/xx/Library/Python/3.7/lib/python/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/Users/xx/Library/Python/3.7/lib/python/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/Users/xx/Library/Python/3.7/lib/python/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/Users/xx/Library/Python/3.7/lib/python/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

thankyou

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.