Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Emeka boris ama Emekaborisama

🎯
Focusing
View GitHub Profile
View auth_tweepy.py
import tweepy as tp
#auth for twitter api
auth = tp.OAuthHandler('xxxxxxxxx', 'xxxxxxx')
auth.set_access_token('xxxx-xxxxx', 'xxxxxx')
api = tp.API(auth, wait_on_rate_limit=False)
try:
api.verify_credentials()
print("Authentication done")
View get_btc_price.py
import urllib
import json
def get_bitcoin_data():
"""get btc info via messari api"""
main_result = {}
try:
url = "https://data.messari.io/api/v1/assets/btc/metrics"
resp = urllib.request.urlopen(url).read()
View sample.py
from magniv.core import task
from datetime import datetime
import urllib
import json
import tweepy as tp
#auth for twitter api
auth = tp.OAuthHandler('xxxxxxx', 'xxxxxxxx')
auth.set_access_token('xxxxx-xxxxx', 'xxxxxxxx')
api = tp.API(auth, wait_on_rate_limit=False)
@Emekaborisama
Emekaborisama / 100 Days of DS Code Curriculum
Last active Mar 21, 2019
Inspired by Siraj Raval post on Learn Data science in 3 month check it out here https://www.youtube.com/watch?v=9rDhY1P3YLA
View 100 Days of DS Code Curriculum
All content here has been moved to https://github.com/Emekaborisama/100daysofdscode