""" scmp.com """ import json import re from datetime import datetime, timedelta, timezone from calibre.ebooks.BeautifulSoup import BeautifulSoup from calibre.web.feeds.news import BasicNewsRecipe, classes class SCMP(BasicNewsRecipe): title = "South China Morning Post" __author__ = "llam" description = "SCMP.com, Hong Kong's premier online English daily provides exclusive up-to-date news, audio video news, podcasts, RSS Feeds, Blogs, breaking news, top stories, award winning news and analysis on Hong Kong and China." # noqa publisher = "South China Morning Post Publishers Ltd." oldest_article = 1 max_articles_per_feed = 25 no_stylesheets = True remove_javascript = True encoding = "utf-8" use_embedded_content = False language = "en" remove_empty_feeds = True publication_type = "newspaper" auto_cleanup = False compress_news_images = True ignore_duplicate_articles = {"title", "url"} # used when unable to extract article from