def post_listing_to_slack(sc, listing):
 desc = '{0} | {1} | {2} | {3} | <{4}>'.format(listing['area'], listing['price'], listing['bart_dist'], listing['name'], listing['url'])
 sc.api_call('chat.postMessage', channel=settings.SLACK_CHANNEL, text=desc, username='pybot', icon_emoji=':robot_face:')

def post_listing_to_slack ( sc , listing ) : desc = '{0} | {1} | {2} | {3} | <{4}>' . format ( listing [ 'area' ] , listing [ 'price' ] , listing [ 'bart_dist' ] , listing [ 'name' ] , listing [ 'url' ] ) sc . api_call ( 'chat.postMessage' , channel = settings . SLACK_CHANNEL , text = desc , username = 'pybot' , icon_emoji = ':robot_face:' )
posts the listing to slack .