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

no form matching name 'libgen' #22

Open
dmwyatt opened this issue Oct 17, 2021 · 2 comments
Open

no form matching name 'libgen' #22

dmwyatt opened this issue Oct 17, 2021 · 2 comments

Comments

@dmwyatt
Copy link
Contributor

dmwyatt commented Oct 17, 2021

$ bookcut book -b "White Fang" -a "Jack London"

Searching for White fang by Jack london
Connected to: http://libgen.li/
Traceback (most recent call last):
  File "c:\users\dustin\.pyenv\pyenv-win\versions\3.9.6\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\dustin\.pyenv\pyenv-win\versions\3.9.6\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\Scripts\bookcut.exe\__main__.py", line 7, in <module>
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\click\core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\bookcut\bookcut.py", line 98, in book
    libgen_book_find(
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\bookcut\book.py", line 18, in libgen_book_find
    result = book.search()
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\bookcut\book.py", line 69, in search
    br.select_form("libgen")
  File "C:\Users\dustin\.local\pipx\.cache\3b1d662aa11f0ae\lib\site-packages\mechanize\_mechanize.py", line 681, in select_form
    raise FormNotFoundError("no form matching " + description)
mechanize._mechanize.FormNotFoundError: no form matching name 'libgen'

Probably some HTML changes at libgen.li...

jonasw234 added a commit to jonasw234/bookcut that referenced this issue Feb 12, 2022
https://libgen.lc/ uses a new interface. Easiest solution: Switch to https://libgen.is/ which uses the old interface.
Also https://libgen.lc/ uses form id `formlibgen` with `enctype=multipart/form-data` which is not recognized as a valid encoding type for GET requests by `mechanize`, so this would be a bit more work to update properly.
@E-11-V
Copy link

E-11-V commented Dec 5, 2022

Same issue here

@Aha-Eureka
Copy link

same here on mac

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

3 participants