def do_scrape():
 sc = SlackClient(settings.SLACK_TOKEN)
 all_results = []
 for area in settings.AREAS:
  all_results += scrape_area(area)
 print '{}: Got {} results'.format(time.ctime(), len(all_results))
 for result in all_results:
  post_listing_to_slack(sc, result)

def do_scrape ( ) : sc = SlackClient ( settings . SLACK_TOKEN ) all_results = [ ] for area in settings . AREAS : all_results += scrape_area ( area ) print '{}: Got {} results' . format ( time . ctime ( ) , len ( all_results ) ) for result in all_results : post_listing_to_slack ( sc , result )
runs the craigslist scraper .