many websites have public apis providing data feeds via json or some other format there are number of ways to access these apis from pythonone easy-to-use method that recommend is the requests package (for the words "python pandason twitterwe can make an http get request like soin [ ]import requests in [ ]url 'in [ ]resp requests get(urlin [ ]resp out[ ]the response object' text attribute contains the content of the get query many web apis will return json string that must be loaded into python objectin [ ]import json in [ ]data json loads(resp textin [ ]data keys(out[ ][ 'next_page' 'completed_in' 'max_id_str' 'since_id_str' 'refresh_url' 'results' 'since_id' 'results_per_page' 'query' 'max_id' 'page'the results field in the response contains list of tweetseach of which is represented as python dict that looks like{ 'created_at' 'mon jun : : + ' 'from_user' 'wesmckinn' 'from_user_id' 'from_user_id_str' ' ' 'from_user_name' 'wes mckinney' 'geo'noneu'id' 'id_str' ' ' 'iso_language_code' 'pt' 'metadata'{ 'result_type' 'recent'} 'source' '< href=" 'text' 'lunchtime pandas-fu 'to_user'noneu'to_user_id' interacting with html and web apis www it-ebooks info