Skip to content

Instantly share code, notes, and snippets.

View kia4king's full-sized avatar
👨‍💻
Coding Gists

Kiarash Bahrami kia4king

👨‍💻
Coding Gists
View GitHub Profile
@kia4king
kia4king / btc.py
Created June 11, 2019 11:26
btc.py is a Bitcoin price checker.
#!/usr/bin/python3
import sys
import json
import requests
def main():
api = "https://api.coindesk.com/v1/bpi/currentprice.json"
response = requests.get(api)
data = response.text
@kia4king
kia4king / findip.py
Last active August 4, 2019 06:15
Findip is a python3 script that finds ip location.
#!usr/bin/env python3
#Don't forget to star and fork gist. by kia4king (no-license)
import sys
import json
import requests
def main(ip):
api = "https://api.ip2country.info/ip?{}"
response = requests.get(api.format(ip))