diff --git a/recipes/dilema.png b/recipes/dilema.png deleted file mode 100644 index 907f122ee1..0000000000 Binary files a/recipes/dilema.png and /dev/null differ diff --git a/recipes/dilema.recipe b/recipes/dilema.recipe index c12280366e..1a64701880 100644 --- a/recipes/dilema.recipe +++ b/recipes/dilema.recipe @@ -1,6 +1,6 @@ #!/usr/bin/env python from calibre.web.feeds.recipes import BasicNewsRecipe -from bs4 import BeautifulSoup + class Volkskrant(BasicNewsRecipe): title = 'Dilema' @@ -42,9 +42,9 @@ class Volkskrant(BasicNewsRecipe): def parse_index(self): homepage_url = 'https://www.dilema.ro/' soup = self.index_to_soup(homepage_url) - + articles = [] - + # .banner-container banner_container = soup.find('div', attrs={'class': 'banner-container'}) container = banner_container.find('h5') @@ -59,7 +59,7 @@ class Volkskrant(BasicNewsRecipe): content='' ) ) - + # .homepage_builder_3grid_post containers = soup.findAll('div', attrs={'class': 'homepage_builder_3grid_post'}) for container in containers: @@ -99,9 +99,9 @@ class Volkskrant(BasicNewsRecipe): body.clear() body.append(img) return soup - + def get_cover_url(self): url = 'https://www.dilema.ro/coperta-saptaminii/' soup = self.index_to_soup(url) img = soup.find(attrs={'id': 'main-carousel'}).find('img') - return url + img.attrs['src'] \ No newline at end of file + return url + img.attrs['src'] diff --git a/recipes/icons/dilema.png b/recipes/icons/dilema.png new file mode 100644 index 0000000000..86df3de293 Binary files /dev/null and b/recipes/icons/dilema.png differ diff --git a/recipes/icons/internazionale.png b/recipes/icons/internazionale.png new file mode 100644 index 0000000000..0944792462 Binary files /dev/null and b/recipes/icons/internazionale.png differ diff --git a/recipes/icons/parool.png b/recipes/icons/parool.png new file mode 100644 index 0000000000..27af33f1dd Binary files /dev/null and b/recipes/icons/parool.png differ diff --git a/recipes/icons/revista22.png b/recipes/icons/revista22.png new file mode 100644 index 0000000000..41b27a7533 Binary files /dev/null and b/recipes/icons/revista22.png differ diff --git a/recipes/icons/volksrant.png b/recipes/icons/volksrant.png index 57349203ab..ec3d3c8a0f 100644 Binary files a/recipes/icons/volksrant.png and b/recipes/icons/volksrant.png differ diff --git a/recipes/internazionale.png b/recipes/internazionale.png deleted file mode 100644 index b7dce84cfd..0000000000 Binary files a/recipes/internazionale.png and /dev/null differ diff --git a/recipes/internazionale.recipe b/recipes/internazionale.recipe index 52094ed9a4..eb57139733 100644 --- a/recipes/internazionale.recipe +++ b/recipes/internazionale.recipe @@ -1,6 +1,7 @@ #!/usr/bin/env python from calibre.web.feeds.recipes import BasicNewsRecipe + class Volkskrant(BasicNewsRecipe): title = 'Internazionale' __author__ = 'Cristi Ghera' @@ -32,11 +33,11 @@ class Volkskrant(BasicNewsRecipe): encoding = 'utf-8' no_stylesheets = True ignore_duplicate_articles = {'url'} - + current_number_url = "https://www.internazionale.it/sommario" home_url = "https://www.internazionale.it" cover_url = None - + def extract_article(self, article): url = article.find('a')['href'] if url[0] == '/': @@ -74,16 +75,16 @@ class Volkskrant(BasicNewsRecipe): sections.append(current_section) current_section = (self.tag_to_string(container), []) continue - + if 'masonry-items' in container['class']: for article in container.findAll('div', {'class': 'abstract-article'}): current_section[1].append(self.extract_article(article)) continue - + if 'abstract-article' in container['class']: current_section[1].append(self.extract_article(container)) continue - + # print(container['class']) if current_section: sections.append(current_section) @@ -112,6 +113,6 @@ class Volkskrant(BasicNewsRecipe): # if self.browser.cookiejar: # self.browser.cookiejar.clear() return soup - + def get_cover_url(self): - return self.cover_url \ No newline at end of file + return self.cover_url diff --git a/recipes/parool.png b/recipes/parool.png deleted file mode 100644 index ef1fd6252f..0000000000 Binary files a/recipes/parool.png and /dev/null differ diff --git a/recipes/revista22.png b/recipes/revista22.png deleted file mode 100644 index 8a6e568c75..0000000000 Binary files a/recipes/revista22.png and /dev/null differ diff --git a/recipes/volkskrant.png b/recipes/volkskrant.png deleted file mode 100644 index 50a432ac85..0000000000 Binary files a/recipes/volkskrant.png and /dev/null differ diff --git a/recipes/volkskrant.recipe b/recipes/volksrant.recipe similarity index 100% rename from recipes/volkskrant.recipe rename to recipes/volksrant.recipe