This file contains 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
from github import Github | |
import itertools | |
import numpy as np | |
user_id='BalazsHoranyi' # hardcoded for demo purposes | |
def get_github_events(user_name): | |
github_token = "superdupersecret" | |
urls = [f'https://api.github.com/users/{user_name}/events?page={i}&access_token={github_token}' for i in range(11)] | |
headers = {} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 stream | |
import datetime | |
API_KEY = "XXX" | |
API_SECRET = "XXXXXX" | |
client = stream.connect(API_KEY, API_SECRET) | |
# Writing custom data to the activities. | |
user_feed = client.feed('user', '1') |
OlderNewer