using databases and sql people follows from_id to_id id name retrieved drchuck opencontent lhawthorn steve_coppin figure relationships between tables import urllib requesturllib parseurllib error import twurl import json import sqlite import ssl twitter_url 'conn sqlite connect('friends sqlite'cur conn cursor(cur execute('''create table if not exists people (id integer primary keyname text uniqueretrieved integer)'''cur execute('''create table if not exists follows (from_id integerto_id integerunique(from_idto_id))'''ignore ssl certificate errors ctx ssl create_default_context(ctx check_hostname false ctx verify_mode ssl cert_none while trueacct input('enter twitter accountor quit'if (acct ='quit')break if (len(acct )cur execute('select idname from people where retrieved= limit 'try(idacctcur fetchone(