Ejemplo n.º 1
0
def content_xxx_scanner(website):
    """Check if website has xxx related content"""
    key = 'has_content_xxx'
    topic = [
        'xxx', 'p**n', 'erotic', 'sex', 'naked', 'nude', u'nøgen', u'fræk'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 2
0
def content_shop_scanner(website):
    """Check if website has shop related content"""
    key = 'has_content_shop'
    topic = [
        'shop', 'butik', u'køb', 'buy', 'bestil', 'order', 'basket', 'kurv',
        'cart', 'sell', u'sælg'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 3
0
def content_food_scanner(website):
    """Check if website has food related content"""
    key = 'has_content_food'
    topic = [
        'food', 'mad', 'opskrift', 'recipe', 'frokost', 'brunch', 'restaurant',
        'cafe'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 4
0
def content_health_scanner(website):
    """Check if website has health related content"""
    key = 'has_content_health'
    topic = [
        'sundhed', 'health', 'motion', 'diet', 'kur', 'slank', u'vægt',
        'weight', u'træning', 'workout'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 5
0
def content_film_scanner(website):
    """Check if website has film related content"""
    key = 'has_content_film'
    topic = [
        'film', 'movie', 'biograf', 'cinema', 'dvd', 'bluray', u'skærm',
        'screen', 'tv', 'fjernsyn'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 6
0
def content_business_scanner(website):
    """Check if website has business related content"""
    key = 'has_content_business'
    topic = [
        'business', 'arbejde', u'økonomi', 'economi', 'work', 'money', 'penge',
        'finance', 'finans', 'aktie', 'stock'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 7
0
def content_sport_scanner(website):
    """Check if website has sport related content"""
    key = 'has_content_sport'
    topic = [
        'sport', 'bold', 'ball', 'spiller', 'tennis', 'cykling', 'boksning',
        'gold', 'motion'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 8
0
def content_technology_scanner(website):
    """Check if website has technology related content"""
    key = 'has_content_technology'
    topic = [
        'computer', 'pc', 'mac', 'phone', 'tablet', 'hardware', 'software',
        u'bærbar', 'laptop', 'notebook'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 9
0
def content_transport_scanner(website):
    """Check if website has transport related content"""
    key = 'has_content_transport'
    topic = [
        'transport', 'bus', 'bil', 'car', 'bike', 'bicycle', 'cykel', 'vej',
        'road', 'tog', 'train', 'metro'
    ]
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 10
0
def backbone_scanner(website):
    key = 'has_js_backbone'
    filename = 'backbone'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 11
0
def angular_scanner(website):
    key = 'has_js_angular'
    filename = 'angular'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 12
0
def ember_scanner(website):
    key = 'has_js_ember'
    filename = 'ember'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 13
0
def knockout_scanner(website):
    key = 'has_js_knockout'
    filename = 'knockout'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 14
0
def content_business_scanner(website):
    """Check if website has business related content"""
    key = 'has_content_business'
    topic = ['business', 'arbejde', u'økonomi', 'economi', 'work',
             'money', 'penge', 'finance', 'finans', 'aktie', 'stock']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 15
0
def content_sport_scanner(website):
    """Check if website has sport related content"""
    key = 'has_content_sport'
    topic = ['sport', 'bold', 'ball', 'spiller',
             'tennis', 'cykling', 'boksning', 'gold', 'motion']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 16
0
def content_transport_scanner(website):
    """Check if website has transport related content"""
    key = 'has_content_transport'
    topic = ['transport', 'bus', 'bil', 'car', 'bike',
             'bicycle', 'cykel', 'vej', 'road', 'tog', 'train', 'metro']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 17
0
def jquery_scanner(website):
    key = 'has_js_jquery'
    filename = 'jquery'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 18
0
def content_shop_scanner(website):
    """Check if website has shop related content"""
    key = 'has_content_shop'
    topic = ['shop', 'butik', u'køb', 'buy', 'bestil',
             'order', 'basket', 'kurv', 'cart', 'sell', u'sælg']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 19
0
def content_music_scanner(website):
    """Check if website has music related content"""
    key = 'has_content_music'
    topic = ['music', 'musik', 'lyd', 'audio', 'song', 'sang', 'pop', 'rock']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 20
0
def content_xxx_scanner(website):
    """Check if website has xxx related content"""
    key = 'has_content_xxx'
    topic = ['xxx', 'p**n', 'erotic', 'sex',
             'naked', 'nude', u'nøgen', u'fræk']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 21
0
def content_technology_scanner(website):
    """Check if website has technology related content"""
    key = 'has_content_technology'
    topic = ['computer', 'pc', 'mac', 'phone', 'tablet',
             'hardware', 'software', u'bærbar', 'laptop', 'notebook']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 22
0
def content_games_scanner(website):
    """Check if website has games related content"""
    key = 'has_content_games'
    topic = ['game', 'spil', 'xbox', 'playstation', 'wii']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 23
0
def prototype_scanner(website):
    key = 'has_js_prototype'
    filename = 'prototype'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 24
0
def content_news_scanner(website):
    """Check if website has news related content"""
    key = 'has_content_news'
    topic = ['nyheder', 'news', 'avis', '']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 25
0
def dojo_scanner(website):
    key = 'has_js_dojo'
    filename = 'dojo'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 26
0
def modernizr_scanner(website):
    key = 'has_js_modernizr'
    filename = 'modernizr'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 27
0
def content_news_scanner(website):
    """Check if website has news related content"""
    key = 'has_content_news'
    topic = ['nyheder', 'news', 'avis', '']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 28
0
def content_music_scanner(website):
    """Check if website has music related content"""
    key = 'has_content_music'
    topic = ['music', 'musik', 'lyd', 'audio', 'song', 'sang', 'pop', 'rock']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 29
0
def content_games_scanner(website):
    """Check if website has games related content"""
    key = 'has_content_games'
    topic = ['game', 'spil', 'xbox', 'playstation', 'wii']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 30
0
def content_film_scanner(website):
    """Check if website has film related content"""
    key = 'has_content_film'
    topic = ['film', 'movie', 'biograf', 'cinema', 'dvd',
             'bluray', u'skærm', 'screen', 'tv', 'fjernsyn']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 31
0
def underscore_scanner(website):
    key = 'has_js_underscore'
    filename = 'underscore'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 32
0
def content_health_scanner(website):
    """Check if website has health related content"""
    key = 'has_content_health'
    topic = ['sundhed', 'health', 'motion', 'diet', 'kur',
             'slank', u'vægt', 'weight', u'træning', 'workout']
    return create_binary_attribute(key, has_topic(website, topic))
Ejemplo n.º 33
0
def handlebars_scanner(website):
    key = 'has_js_handlebars'
    filename = 'handlebars'
    return create_binary_attribute(key, has_script(website, filename))
Ejemplo n.º 34
0
def content_food_scanner(website):
    """Check if website has food related content"""
    key = 'has_content_food'
    topic = ['food', 'mad', 'opskrift', 'recipe',
             'frokost', 'brunch', 'restaurant', 'cafe']
    return create_binary_attribute(key, has_topic(website, topic))