Last active
August 29, 2015 14:05
-
-
Save jujum4n/e6c2963f32445ce16650 to your computer and use it in GitHub Desktop.
Usage of Onenamepy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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