<s> import os , subprocess <EOL> from fetch_core import setup_environment , cprint <EOL> from sys import argv <EOL> setup_environment ( ) <EOL> from dashboard . models import Blog , Project <EOL> from observatory . settings import BLOG_FETCH_PROCESS_COUNT <EOL> blog = Blog . objects . get ( id = argv [ <NUM_LIT:1> ] ) <EOL> if blog . from_feed : <EOL> try : <EOL> title = blog . project . title <EOL> except : <EOL> try : <EOL> title = blog . user . get_full_name ( ) <EOL> except : <EOL> title = "<STR_LIT>" <EOL> cprint ( "<STR_LIT>" . format ( title ) , "<STR_LIT>" , attrs = [ "<STR_LIT>" ] ) <EOL> blog . fetch ( ) <EOL> cprint ( "<STR_LIT>" . format ( title ) , "<STR_LIT>" , attrs = [ "<STR_LIT>" ] ) </s>
