Пример #1
0
def start_slashdot_mainpage_scraper():
    print(" >>> Starting slashdot scraper.")
    try:
        slashdot_job = UpstartJob(SLASHDOT_SCRAPER)
        slashdot_job.start()
        print(" >>> Scraper started successfully.")
    except:
        print(" >>> Scraper failed to start.")
Пример #2
0
def start_slashdot_api_server():
    print(" >>> Starting slashdot server.")
    try:
        slashdot_job = UpstartJob(SLASHDOT_API)
        slashdot_job.start()
        print(" >>> Server started succesfully.")
    except:
        print("Slashdot server couldn't start.")