#NEWLINE# def project_info_1( self , project_id ) : #NEWLINE# #INDENT# print ( '' ) #NEWLINE# print ( 'When we created our project, it immediately ran the first step of the workflow: scraping an image from the website we passed in.' ) #NEWLINE# self . pause ( 2 ) #NEWLINE# print ( "Let's verify that this worked successfully by using Orchestra's API to check the project info." ) #NEWLINE# self . pause ( 2 ) #NEWLINE# print ( 'The API call looks like this:' ) #NEWLINE# print ( '' ) #NEWLINE# print ( 'get_project_information(project_id)' ) #NEWLINE# print ( '' ) #NEWLINE# self . pause ( 2 ) #NEWLINE# input ( 'Press enter when you are ready to make the API call and print out the JSON data received in response. ' ) #NEWLINE# project_info = get_project_information ( project_id ) #NEWLINE# print ( "Information received! Here's what we got:" ) #NEWLINE# print ( '' ) #NEWLINE# self . pause ( 2 ) #NEWLINE# pprint ( self ) #NEWLINE# self . pause ( 4 ) #NEWLINE# print ( '' ) #NEWLINE# print ( "Note that 'tasks.crawl.status' is 'Complete', and 'tasks.crawl.latest_data.image' is set to an image URL scraped from our site. Paste the URL into a browser and you should see Joseph's smiling face!" ) #NEWLINE# self . pause ( 2 ) #NEWLINE# print ( "Also, check out 'tasks.rate'. That's the human step we'll need to do next. Observe that its status is 'Awaiting Processing' and that 'latest_data' is None because no work has been done yet." ) #NEWLINE# self . pause ( 4 )