mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-12 18:28:29 -04:00
Switch Economist back to webengine
Cloudflare has started blocking mechanize
This commit is contained in:
parent
166548a9d3
commit
118097e486
@ -214,7 +214,7 @@ class Econ1843(BasicNewsRecipe):
|
||||
# economist.com has started throttling after about 60% of the total has
|
||||
# downloaded with connection reset by peer (104) errors.
|
||||
delay = 1
|
||||
# browser_type = 'webengine'
|
||||
browser_type = 'webengine'
|
||||
|
||||
recipe_specific_options = {
|
||||
'res': {
|
||||
|
||||
@ -219,7 +219,7 @@ class Economist(BasicNewsRecipe):
|
||||
resolve_internal_links = True
|
||||
|
||||
delay = 1
|
||||
# browser_type = 'webengine'
|
||||
browser_type = 'webengine'
|
||||
from_web = True
|
||||
recipe_specific_options = {
|
||||
'date': {
|
||||
|
||||
@ -33,7 +33,7 @@ class Espresso(BasicNewsRecipe):
|
||||
remove_attributes = ['height', 'width', 'style']
|
||||
use_embedded_content = False
|
||||
masthead_url = 'https://www.livemint.com/lm-img/dev/economist-logo-oneline.png'
|
||||
# browser_type = 'webengine'
|
||||
browser_type = 'webengine'
|
||||
|
||||
extra_css = '''
|
||||
h1 { text-align:center; }
|
||||
|
||||
@ -219,7 +219,7 @@ class Economist(BasicNewsRecipe):
|
||||
resolve_internal_links = True
|
||||
|
||||
delay = 1
|
||||
# browser_type = 'webengine'
|
||||
browser_type = 'webengine'
|
||||
from_web = True
|
||||
recipe_specific_options = {
|
||||
'date': {
|
||||
|
||||
@ -221,7 +221,7 @@ class EconomistNews(BasicNewsRecipe):
|
||||
remove_empty_feeds = True
|
||||
ignore_duplicate_articles = {'title'}
|
||||
|
||||
# browser_type = 'webengine'
|
||||
browser_type = 'webengine'
|
||||
|
||||
needs_subscription = False
|
||||
|
||||
|
||||
@ -209,7 +209,7 @@ class econ_search(BasicNewsRecipe):
|
||||
# economist.com has started throttling after about 60% of the total has
|
||||
# downloaded with connection reset by peer (104) errors.
|
||||
delay = 1
|
||||
# browser_type = 'webengine'
|
||||
browser_type = 'webengine'
|
||||
|
||||
recipe_specific_options = {
|
||||
'q': {
|
||||
|
||||
@ -214,7 +214,7 @@ class EconomistWorld(BasicNewsRecipe):
|
||||
# economist.com has started throttling after about 60% of the total has
|
||||
# downloaded with connection reset by peer (104) errors.
|
||||
delay = 1
|
||||
# browser_type = 'webengine'
|
||||
browser_type = 'webengine'
|
||||
|
||||
recipe_specific_options = {
|
||||
'res': {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user