mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
b52a976230
commit
906a2cde25
@ -26,7 +26,7 @@ class scienceadv(BasicNewsRecipe):
|
||||
browser_type = 'qt'
|
||||
|
||||
extra_css = '''
|
||||
.news-article__figure__caption {font-size:small; text-align:center;}
|
||||
.news-article__figure__caption, .figc {font-size:small;}
|
||||
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
|
||||
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
|
||||
img {display:block; margin:0 auto;}
|
||||
@ -70,6 +70,8 @@ class scienceadv(BasicNewsRecipe):
|
||||
if w and isinstance(w, str):
|
||||
res = '/cdn-cgi/image/width=' + w
|
||||
img['src'] = absurl(res + img['src'])
|
||||
for figc in soup.findAll('figcaption'):
|
||||
figc['class'] = 'figc'
|
||||
return soup
|
||||
|
||||
def parse_index(self):
|
||||
|
@ -24,7 +24,7 @@ class science(BasicNewsRecipe):
|
||||
browser_type = 'qt'
|
||||
|
||||
extra_css = '''
|
||||
.news-article__figure__caption {font-size:small; text-align:center;}
|
||||
.news-article__figure__caption, .figc {font-size:small;}
|
||||
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
|
||||
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
|
||||
img {display:block; margin:0 auto;}
|
||||
@ -68,6 +68,8 @@ class science(BasicNewsRecipe):
|
||||
if w and isinstance(w, str):
|
||||
res = '/cdn-cgi/image/width=' + w
|
||||
img['src'] = absurl(res + img['src'])
|
||||
for figc in soup.findAll('figcaption'):
|
||||
figc['class'] = 'figc'
|
||||
return soup
|
||||
|
||||
def parse_index(self):
|
||||
|
@ -26,7 +26,7 @@ class scienceadv(BasicNewsRecipe):
|
||||
browser_type = 'qt'
|
||||
|
||||
extra_css = '''
|
||||
.news-article__figure__caption {font-size:small; text-align:center;}
|
||||
.news-article__figure__caption, .figc {font-size:small;}
|
||||
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
|
||||
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
|
||||
img {display:block; margin:0 auto;}
|
||||
@ -70,6 +70,8 @@ class scienceadv(BasicNewsRecipe):
|
||||
if w and isinstance(w, str):
|
||||
res = '/cdn-cgi/image/width=' + w
|
||||
img['src'] = absurl(res + img['src'])
|
||||
for figc in soup.findAll('figcaption'):
|
||||
figc['class'] = 'figc'
|
||||
return soup
|
||||
|
||||
def parse_index(self):
|
||||
|
@ -26,7 +26,7 @@ class scienceadv(BasicNewsRecipe):
|
||||
browser_type = 'qt'
|
||||
|
||||
extra_css = '''
|
||||
.news-article__figure__caption {font-size:small; text-align:center;}
|
||||
.news-article__figure__caption, .figc {font-size:small;}
|
||||
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
|
||||
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
|
||||
img {display:block; margin:0 auto;}
|
||||
@ -70,6 +70,8 @@ class scienceadv(BasicNewsRecipe):
|
||||
if w and isinstance(w, str):
|
||||
res = '/cdn-cgi/image/width=' + w
|
||||
img['src'] = absurl(res + img['src'])
|
||||
for figc in soup.findAll('figcaption'):
|
||||
figc['class'] = 'figc'
|
||||
return soup
|
||||
|
||||
def parse_index(self):
|
||||
|
@ -25,7 +25,7 @@ class scienceadv(BasicNewsRecipe):
|
||||
browser_type = 'qt'
|
||||
|
||||
extra_css = '''
|
||||
.news-article__figure__caption {font-size:small; text-align:center;}
|
||||
.news-article__figure__caption, .figc {font-size:small;}
|
||||
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
|
||||
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
|
||||
img {display:block; margin:0 auto;}
|
||||
@ -69,6 +69,8 @@ class scienceadv(BasicNewsRecipe):
|
||||
if w and isinstance(w, str):
|
||||
res = '/cdn-cgi/image/width=' + w
|
||||
img['src'] = absurl(res + img['src'])
|
||||
for figc in soup.findAll('figcaption'):
|
||||
figc['class'] = 'figc'
|
||||
return soup
|
||||
|
||||
def parse_index(self):
|
||||
|
@ -26,7 +26,7 @@ class scienceadv(BasicNewsRecipe):
|
||||
browser_type = 'qt'
|
||||
|
||||
extra_css = '''
|
||||
.news-article__figure__caption {font-size:small; text-align:center;}
|
||||
.news-article__figure__caption, .figc {font-size:small;}
|
||||
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
|
||||
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
|
||||
img {display:block; margin:0 auto;}
|
||||
@ -70,6 +70,8 @@ class scienceadv(BasicNewsRecipe):
|
||||
if w and isinstance(w, str):
|
||||
res = '/cdn-cgi/image/width=' + w
|
||||
img['src'] = absurl(res + img['src'])
|
||||
for figc in soup.findAll('figcaption'):
|
||||
figc['class'] = 'figc'
|
||||
return soup
|
||||
|
||||
def parse_index(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user