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 requests and regex library | |
| import requests | |
| import re | |
| def get_external_ip(): | |
| # Make a request to checkip.dyndns.org as proposed | |
| # in https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery#DNS_Addresses | |
| response = requests.get('http://checkip.dyndns.org').text | |
| # Filter the response with a regex for an IPv4 address |
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
| ## bitwalletrecover.py - recover private keys from your darkcoin wallet | |
| ## (this version was not tested with bitcoin/litecoin). | |
| ## Requires python3, pycoin (https://pypi.python.org/pypi/pycoin), | |
| ## and base58 (https://pypi.python.org/pypi/base58). | |
| ## | |
| ## Starting with Python 3.4, pip is included by default with the Python binary | |
| ## installers. To install pip for older versions 3.x: | |
| ## | |
| ## sudo apt-get install python3-setuptools | |
| ## sudo easy_install3 pip |
