Browse Source

Add more SiteInfo entries for common sites

merge-requests/88/head
Deimos 5 years ago
parent
commit
2a8a1d4ba0
  1. 10
      tildes/tildes/lib/site_info.py

10
tildes/tildes/lib/site_info.py

@ -47,11 +47,13 @@ SITE_INFO_BY_DOMAIN = {
"bandcamp.com": SiteInfo("Bandcamp", content_type=None), "bandcamp.com": SiteInfo("Bandcamp", content_type=None),
"bbc.co.uk": SiteInfo("BBC"), "bbc.co.uk": SiteInfo("BBC"),
"bbc.com": SiteInfo("BBC"), "bbc.com": SiteInfo("BBC"),
"bellingcat.com": SiteInfo("Bellingcat"),
"bloomberg.com": SiteInfo("Bloomberg"), "bloomberg.com": SiteInfo("Bloomberg"),
"businessinsider.com": SiteInfo("Business Insider"), "businessinsider.com": SiteInfo("Business Insider"),
"buzzfeednews.com": SiteInfo("BuzzFeed News"), "buzzfeednews.com": SiteInfo("BuzzFeed News"),
"cbc.ca": SiteInfo("CBC"), "cbc.ca": SiteInfo("CBC"),
"citylab.com": SiteInfo("CityLab"), "citylab.com": SiteInfo("CityLab"),
"cjr.org": SiteInfo("Columbia Journalism Review"),
"cnbc.com": SiteInfo("CNBC"), "cnbc.com": SiteInfo("CNBC"),
"cnn.com": SiteInfo("CNN"), "cnn.com": SiteInfo("CNN"),
"currentaffairs.org": SiteInfo("Current Affairs"), "currentaffairs.org": SiteInfo("Current Affairs"),
@ -75,6 +77,8 @@ SITE_INFO_BY_DOMAIN = {
"hpe.com": SiteInfo("Hewlett Packard Enterprise"), "hpe.com": SiteInfo("Hewlett Packard Enterprise"),
"huffpost.com": SiteInfo("HuffPost"), "huffpost.com": SiteInfo("HuffPost"),
"imgur.com": SiteInfo("Imgur", content_type=TopicContentType.IMAGE), "imgur.com": SiteInfo("Imgur", content_type=TopicContentType.IMAGE),
"independent.co.uk": SiteInfo("The Independent"),
"jacobinmag.com": SiteInfo("Jacobin"),
"justice.gov": SiteInfo("US Department of Justice"), "justice.gov": SiteInfo("US Department of Justice"),
"kotaku.com": SiteInfo("Kotaku"), "kotaku.com": SiteInfo("Kotaku"),
"latimes.com": SiteInfo("Los Angeles Times"), "latimes.com": SiteInfo("Los Angeles Times"),
@ -82,6 +86,7 @@ SITE_INFO_BY_DOMAIN = {
"melmagazine.com": SiteInfo("MEL Magazine"), "melmagazine.com": SiteInfo("MEL Magazine"),
"mozilla.org": SiteInfo("Mozilla"), "mozilla.org": SiteInfo("Mozilla"),
"nasa.gov": SiteInfo("NASA"), "nasa.gov": SiteInfo("NASA"),
"nationalgeographic.com": SiteInfo("National Geographic"),
"nature.com": SiteInfo("Nature"), "nature.com": SiteInfo("Nature"),
"nbcnews.com": SiteInfo("NBC News"), "nbcnews.com": SiteInfo("NBC News"),
"newsweek.com": SiteInfo("Newsweek"), "newsweek.com": SiteInfo("Newsweek"),
@ -91,6 +96,8 @@ SITE_INFO_BY_DOMAIN = {
"nytimes.com": SiteInfo("The New York Times"), "nytimes.com": SiteInfo("The New York Times"),
"outsideonline.com": SiteInfo("Outside"), "outsideonline.com": SiteInfo("Outside"),
"pinknews.co.uk": SiteInfo("PinkNews"), "pinknews.co.uk": SiteInfo("PinkNews"),
"politico.com": SiteInfo("Politico"),
"politico.eu": SiteInfo("Politico Europe"),
"polygon.com": SiteInfo("Polygon"), "polygon.com": SiteInfo("Polygon"),
"propublica.org": SiteInfo("ProPublica"), "propublica.org": SiteInfo("ProPublica"),
"psmag.com": SiteInfo("Pacific Standard"), "psmag.com": SiteInfo("Pacific Standard"),
@ -122,6 +129,7 @@ SITE_INFO_BY_DOMAIN = {
"theinformation.com": SiteInfo("The Information"), "theinformation.com": SiteInfo("The Information"),
"theoutline.com": SiteInfo("The Outline"), "theoutline.com": SiteInfo("The Outline"),
"theparisreview.org": SiteInfo("Paris Review"), "theparisreview.org": SiteInfo("Paris Review"),
"theregister.co.uk": SiteInfo("The Register"),
"theringer.com": SiteInfo("The Ringer"), "theringer.com": SiteInfo("The Ringer"),
"theverge.com": SiteInfo("The Verge"), "theverge.com": SiteInfo("The Verge"),
"threadreaderapp.com": SiteInfo( "threadreaderapp.com": SiteInfo(
@ -140,8 +148,10 @@ SITE_INFO_BY_DOMAIN = {
"Vimeo", show_author=True, content_type=TopicContentType.VIDEO "Vimeo", show_author=True, content_type=TopicContentType.VIDEO
), ),
"vox.com": SiteInfo("Vox"), "vox.com": SiteInfo("Vox"),
"vulture.com": SiteInfo("Vulture"),
"washingtonpost.com": SiteInfo("The Washington Post"), "washingtonpost.com": SiteInfo("The Washington Post"),
"who.int": SiteInfo("World Health Organization"), "who.int": SiteInfo("World Health Organization"),
"wikipedia.org": SiteInfo("Wikipedia"),
"wired.com": SiteInfo("WIRED"), "wired.com": SiteInfo("WIRED"),
"wordpress.com": SiteInfo("WordPress", show_author=True), "wordpress.com": SiteInfo("WordPress", show_author=True),
"wsj.com": SiteInfo("The Wall Street Journal"), "wsj.com": SiteInfo("The Wall Street Journal"),

Loading…
Cancel
Save