Posts

Showing posts from April, 2014

VTC/USD, VTC/EUR and VTC/GBP Python Script

Image
You may  want download the file here: https://drive.google.com/file/d/0B06EJahqJCOCVzY1eTVMYTZDS00/edit?usp=sharing 

importurllib2importjsonimporttimeimportpandasaspdfrompandasimportSeries,DataFramefromurllib2importURLErrorimportystockquote# Accessing VTC/BTC price from Cryptsydefvtcbtc():try:raw=urllib2.urlopen("http://pubapi.cryptsy.com/api.php?method=singleorderdata&marketid=151").read()dictionary=json.loads(raw)#BIDbidraw=dictionary['return']['VTC']['buyorders']newformatb=pd.DataFrame(bidraw)newnameb=newformatb.rename(columns={'price':'BID'})globalfinalbid1finalbid1=newnameb[0:1]exceptURLError,error:printerror#BTC/USD price from BTC-edefbtcusd():btcePrices=urllib2.urlopen("https://btc-e.com/api/2/btc_usd/ticker").read()btcejson=json.loads(btcePrices)globalbtcelastPbtcelastP=btcejson['ticker']['last']globalbtcelastB#bidbtcelastB=btcejson['ticker']['sell']globalbtcelastA#askbtcelastA=btcej…

How To Find A Website's IP via command line

Image
The command we will be using is nslookup. For example:

nslookup www.cryptsy.com
This will return

Non-authoritative answer:
www.cryptsy.com    canonical name = qrq4x.x.incapdns.net.
Name:    qrq4x.x.incapdns.net
Address: 192.230.66.5