Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/a/i/AINews-HEAD/AINewsConfig.py   AINews(Download)
 
import sys
from AINewsTools import loadconfig, loadfile
 
# Load those user configurable parameters
 
whitelist = []
for line in loadfile(paths['ainews.whitelist']):
    w = line.strip()
    if w != '':
        whitelist.append(w)
 
blacklist_urls = []
for line in loadfile(paths['ainews.blacklist_urls']):
 
blacklist_words = []
for line in loadfile(paths['ainews.blacklist_words']):
    w = line.strip()
    if w != '':