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

Cambridge go downloader not working gives StopIteration Error #112

Open
Shingroo opened this issue Nov 13, 2024 · 0 comments
Open

Cambridge go downloader not working gives StopIteration Error #112

Shingroo opened this issue Nov 13, 2024 · 0 comments

Comments

@Shingroo
Copy link

While trying to download from Cambridge go get stuck at 52%

Select a book or a comma-separated list of books: 36
Extracting zip ━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━ 52% 0:00:03
Traceback (most recent call last):
File "E:\pdfgrabber-master\main.py", line 280, in
main()
File "E:\pdfgrabber-master\main.py", line 261, in main
downloadbook()
File "E:\pdfgrabber-master\main.py", line 182, in downloadbook
pdfpath = utils.downloadbook(service, token, bookid, books[bookid], progressfun)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\pdfgrabber-master\utils.py", line 53, in downloadbook
pdf = service.downloadbook(token, bookid, data, progress)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\pdfgrabber-master\services\cmb.py", line 171, in downloadbook
tocitem = next(i for i in tocfile.find("xhtml:body", ns).findall("xhtml:nav", ns) if i.get("{http://www.idpf.org/2007/ops}type") == "toc")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

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