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 requests | |
from requests.auth import HTTPBasicAuth | |
list_of_repos = [] | |
fork_score, star_score, commit_score = (0,)*3 | |
#Note, you cannot get ALL commits a user has ever made. What this script does is iterate through a user's local repositories | |
#and count how many git commits have been made and how many times a repository of yours has been forked or starred | |
def compile_raw_gitscore(username='arshbot'): | |
get_user_repos(username) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#Created by Harsha Goli | |
#Remember to register your script with reddit at https://ssl.reddit.com/prefs/apps | |
#You will use those credentials and input them in the praw.Reddit() parameters. Your script will fail otherwise. | |
import praw | |
#pug bombs the chat and destroys this poor bot's soul | |
def pugbomb(response, args): |
NewerOlder