|
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
sys.path.append("..")
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dnmapper.settings")
|
|
import django
|
|
django.setup()
|
|
|
|
from backend.crawler import crawl
|
|
|
|
|
|
def main():
|
|
crawl()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|