No images in this repository’s iceberg at this time
Download raw (430 bytes)
from django.core.management.base import BaseCommand from aacore import app import codecs class Command(BaseCommand): args = '<url.lst>' help = 'Indexes a list of urls' def handle(self, *args, **options): for arg in args: file = codecs.open(arg, "r", "utf-8") for line in file.read().splitlines(): print(line) app.index(line) file.close()