Skip to content

Instantly share code, notes, and snippets.

@jujum4n
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save jujum4n/e6c2963f32445ce16650 to your computer and use it in GitHub Desktop.

Select an option

Save jujum4n/e6c2963f32445ce16650 to your computer and use it in GitHub Desktop.
Usage of Onenamepy
import onename
def getAllBTCAddrs(FILEPATHNAME,OUTPUTFILEPATH):
f = open(FILEPATHNAME, 'r')
o = open(OUTPUTFILEPATH, 'w')
for line in f:
data=getOneNameJson(line.rstrip('\r\n'))
BTCADDR=getBitcoin(data)
print line.rstrip('\r\n')+","+str(BTCADDR)+"\n"
#o.write(line.rstrip('\r\n')+","+str(BTCADDR)+"\n")
getAllBTCAddrs("c:\\Users\\juju\\Desktop\\inputnamelist", "c:\\Users\\juju\\Desktop\\output.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment