Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2023, 09:32 AM   #1
mariorsjr
Junior Member
mariorsjr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2023
Device: kindle
ModuleNotFoundError: No module named 'calibre.web.jsbrowser'

Trying to develop a new recipe,
"from calibre.web.jsbrowser.browser import Browser"
I'm receiving an error when ebook-convert myrecipe.recipe .epub --test -vvv --debug-pipeline debug

The error: ModuleNotFoundError: No module named 'calibre.web.jsbrowser'

How can I fix this?
mariorsjr is offline   Reply With Quote
Old 05-04-2023, 12:49 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is no jsbrowser in calibre, dont use it.
kovidgoyal is online now   Reply With Quote
Advert
Old 05-04-2023, 01:12 PM   #3
mariorsjr
Junior Member
mariorsjr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2023
Device: kindle
Oh ok :/

I made a recipe locally for Revista Piaui(https://piaui.folha.uol.com.br/assine/modal-login/), but they started to require login (I was only using cookies and it worked until this month) and I believe their login uses javascript.

Is there any way to be able to login inside the recipe (because of javascript)?
Thanks
mariorsjr is offline   Reply With Quote
Old 05-04-2023, 10:28 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There are many recipes that implement login for javascript based sites. For example, WSJ. The trick is to use the browser developer tools to see what actual http requests are made by the javascript and to duplicate htem.
kovidgoyal is online now   Reply With Quote
Old 05-05-2023, 09:05 AM   #5
mariorsjr
Junior Member
mariorsjr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2023
Device: kindle
I will check that. Thank you!
mariorsjr is offline   Reply With Quote
Advert
Old 05-05-2023, 01:24 PM   #6
mariorsjr
Junior Member
mariorsjr began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2023
Device: kindle
It worked!
Thank you @kovidgoyal
mariorsjr is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre - Python No module named magick BigBird Calibre 7 10-02-2016 05:01 PM
No module named PyQt5.Qt silentfuzzle Development 2 08-19-2014 12:31 PM
No module named icu favour Development 2 04-08-2014 11:37 PM
Calibre 0.8.36 - Linux Compile Error - No module named dateutil.parser jasn Calibre 2 01-21-2012 11:36 PM


All times are GMT -4. The time now is 12:39 AM.


MobileRead.com is a privately owned, operated and funded community.