Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get a key error 'n' when I try to down with this kind of book address: https://online.fliphtml5.com/nzcu/tskb/#p=1 #5

Open
BagabBhatti opened this issue Sep 16, 2024 · 0 comments

Comments

@BagabBhatti
Copy link

Here is the detail of full error I get and please help me resolve this:

C:\Users\hssna\Music\fliphtml5Downloader>python3 fliphtml5Downloader.py
Enter the book link in the format *****/****:
nzcu/tskb
Traceback (most recent call last):
File "C:\Users\hssna\Music\fliphtml5Downloader\fliphtml5Downloader.py", line 66, in
page_url = url_crack(book_name, page)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hssna\Music\fliphtml5Downloader\fliphtml5Downloader.py", line 56, in url_crack
url_options = {0: 'https://online.fliphtml5.com/{0}/files/large/{1}'.format(book_name, fliphtml5_pages[page]['n'][0]), 1: 'https://online.fliphtml5.com/{0}/files/page/{1}.jpg'.format(book_name, page+1), 2: 'https://online.fliphtml5.com/{0}{1}'.format(book_name, fliphtml5_pages[page]['n'][0][1:])}
~~~~~~~~~~~~~~~~~~~~~^^^^^
KeyError: 'n'

The Full address for the book is:
https://online.fliphtml5.com/nzcu/tskb/#p=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant