using web services exercise change either geojson py or geoxml py to print out the twocharacter country code from the retrieved data add error checking so your program does not traceback if the country code is not there once you have it workingsearch for "atlantic oceanand make sure it can handle locations that are not in any country application twitter as the twitter api became increasingly valuabletwitter went from an open and public api to an api that required the use of oauth signatures on each api request for this next sample programdownload the files twurl pyhidden pyoauth pyand twitter py from www py com/code and put them all in folder on your computer to make use of these programs you will need to have twitter accountand authorize your python code as an applicationset up keysecrettoken and token secret you will edit the file hidden py and put these four strings into the appropriate variables in the filekeep this file separate create new app and get the four strings def oauth()return {"consumer_key"" lu ng""consumer_secret"dnkenac new mmn ""token_key" -eibxcp geqqosgi""token_secret" yccfemmc wyf qoipbo"codethe twitter web service are accessed using url like thisbut once all of the security information has been addedthe url will look more like&oauth_version= &oauth_token= sgi&screen_name=drchuck &oauth_nonce= &oauth_timestamp= &oauth_signature=rlk bod&oauth_consumer_key= lu gng &oauth_signature_method=hmac-sha you can read the oauth specification if you want to know more about the meaning of the various parameters that are added to meet the security requirements of oauth