Browse Source

Add SiteInfo entries for more common sites

No particular method here, just adding a bunch of recent sites that are
relatively common to see submitted.
merge-requests/86/head
Deimos 5 years ago
parent
commit
fccd738ce5
  1. 21
      tildes/tildes/lib/site_info.py

21
tildes/tildes/lib/site_info.py

@ -37,8 +37,10 @@ class SiteInfo:
SITE_INFO_BY_DOMAIN = {
"abc.net.au": SiteInfo("ABC"),
"aeon.co": SiteInfo("Aeon"),
"aljazeera.com": SiteInfo("Al Jazeera"),
"apnews.com": SiteInfo("Associated Press"),
"arstechnica.com": SiteInfo("Ars Technica"),
"axios.com": SiteInfo("Axios"),
"bandcamp.com": SiteInfo("Bandcamp", content_type=None),
"bbc.co.uk": SiteInfo("BBC"),
"bbc.com": SiteInfo("BBC"),
@ -50,34 +52,52 @@ SITE_INFO_BY_DOMAIN = {
"cnn.com": SiteInfo("CNN"),
"dw.com": SiteInfo("DW"),
"eurogamer.net": SiteInfo("Eurogamer"),
"forbes.com": SiteInfo("Forbes"),
"gamasutra.com": SiteInfo("Gamasutra"),
"github.com": SiteInfo("GitHub", show_author=True, content_type=None),
"gq.com": SiteInfo("GQ"),
"hpe.com": SiteInfo("Hewlett Packard Enterprise"),
"huffpost.com": SiteInfo("HuffPost"),
"imgur.com": SiteInfo("Imgur", content_type=TopicContentType.IMAGE),
"justice.gov": SiteInfo("US Department of Justice"),
"kotaku.com": SiteInfo("Kotaku"),
"latimes.com": SiteInfo("Los Angeles Times"),
"medium.com": SiteInfo("Medium", show_author=True),
"mozilla.org": SiteInfo("Mozilla"),
"nasa.gov": SiteInfo("NASA"),
"nature.com": SiteInfo("Nature"),
"nbcnews.com": SiteInfo("NBC News"),
"newyorker.com": SiteInfo("The New Yorker"),
"npr.org": SiteInfo("NPR"),
"nytimes.com": SiteInfo("The New York Times"),
"pinknews.co.uk": SiteInfo("PinkNews"),
"polygon.com": SiteInfo("Polygon"),
"propublica.org": SiteInfo("ProPublica"),
"psmag.com": SiteInfo("Pacific Standard"),
"quantamagazine.org": SiteInfo("Quanta Magazine"),
"qz.com": SiteInfo("Quartz"),
"reddit.com": SiteInfo("reddit", content_type=None),
"reuters.com": SiteInfo("Reuters"),
"rockpapershotgun.com": SiteInfo("Rock Paper Shotgun"),
"sciencemag.org": SiteInfo("Science"),
"seriouseats.com": SiteInfo("Serious Eats"),
"sfchronicle.com": SiteInfo("San Francisco Chronicle"),
"slate.com": SiteInfo("Slate"),
"smh.com.au": SiteInfo("The Sydney Morning Herald"),
"soundcloud.com": SiteInfo("SoundCloud", show_author=True, content_type=None),
"techcrunch.com": SiteInfo("TechCrunch"),
"technologyreview.com": SiteInfo("MIT Technology Review"),
"telegraph.co.uk": SiteInfo("The Telegraph"),
"theatlantic.com": SiteInfo("The Atlantic"),
"theconversation.com": SiteInfo("The Conversation"),
"theguardian.com": SiteInfo("The Guardian"),
"thehill.com": SiteInfo("The Hill"),
"theoutline.com": SiteInfo("The Outline"),
"theverge.com": SiteInfo("The Verge"),
"twitter.com": SiteInfo(
"Twitter", show_author=True, content_type=TopicContentType.TWEET
),
"usatoday.com": SiteInfo("USA Today"),
"variety.com": SiteInfo("Variety"),
"vice.com": SiteInfo("VICE"),
"vimeo.com": SiteInfo(
@ -85,6 +105,7 @@ SITE_INFO_BY_DOMAIN = {
),
"vox.com": SiteInfo("Vox"),
"washingtonpost.com": SiteInfo("The Washington Post"),
"who.int": SiteInfo("World Health Organization"),
"wired.com": SiteInfo("WIRED"),
"wordpress.com": SiteInfo("WordPress", show_author=True),
"wsj.com": SiteInfo("The Wall Street Journal"),

Loading…
Cancel
Save