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 01-19-2021, 11:56 AM   #1
rasteps
Zealot
rasteps began at the beginning.
 
Posts: 119
Karma: 10
Join Date: Sep 2010
Device: Kindle, Android phone
Japan Times -- filter error message

The Japan Times always gets an error message regarding javascript:

Quote:
Sorry, but your browser needs Javascript to use this site.
If you're not sure how to activate it, please refer to this site: https://www.enable-javascript.com/
Is there any way to filter this out in the recipe?
rasteps is offline   Reply With Quote
Old 01-19-2021, 10:07 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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If it is in a tag with an indentifiable class or id simply add it to remove_tags.
kovidgoyal is offline   Reply With Quote
Old 01-20-2021, 03:52 AM   #3
rasteps
Zealot
rasteps began at the beginning.
 
Posts: 119
Karma: 10
Join Date: Sep 2010
Device: Kindle, Android phone
Quote:
Originally Posted by kovidgoyal View Post
If it is in a tag with an indentifiable class or id simply add it to remove_tags.
That's the only text I see. But it repeats for every article.

My guess is that the site sees the recipe retrieval tool as another browser and returns an error message because does not detect JavaScript....but I'm just guessing at that.

Last edited by rasteps; 01-20-2021 at 03:56 AM.
rasteps is offline   Reply With Quote
Old 01-24-2021, 07:18 PM   #4
rasteps
Zealot
rasteps began at the beginning.
 
Posts: 119
Karma: 10
Join Date: Sep 2010
Device: Kindle, Android phone
Thanks for fixing that!!
rasteps is offline   Reply With Quote
Old 02-18-2022, 05:42 AM   #5
FooBarMitzvah
Junior Member
FooBarMitzvah began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2022
Device: BQ Cervantes 3
I have made an improved version of the recipe.

I removed the Javascript message, as well as the bullet points after the title and the "Related" section at the bottom of the article, just leaving the main text. I could not, however, keep the article author's name.

I set a masthead URL so we get the logo at the top of the Sections menu and fixed the feed URLs (there were http instead of https URLs, as well as the Life feed being wrongly set to the Opinion feed URL. I added the Top Stories feed, too.

I went ahead and made a pull request with the updated recipe:

https://github.com/kovidgoyal/calibre/pull/1596
FooBarMitzvah is offline   Reply With Quote
Old 02-23-2022, 04:46 PM   #6
rasteps
Zealot
rasteps began at the beginning.
 
Posts: 119
Karma: 10
Join Date: Sep 2010
Device: Kindle, Android phone
@FooBarMitzvah

It looks good so far.
rasteps is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Error communicating with device message techie6 Devices 5 04-02-2018 09:25 PM
KindleGen error message: E1003 Unknown error in class String. Doitsu Kindle Formats 1 06-25-2014 12:29 PM
Broken recipe: The Japan Times markvdvelde Recipes 4 02-03-2013 10:49 AM
Japan Times recipe broken? markvdvelde Recipes 5 09-30-2011 06:12 AM
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac NewDay ePub 3 10-07-2010 01:47 PM


All times are GMT -4. The time now is 07:16 PM.


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