Skip to content

Instantly share code, notes, and snippets.

View Yuu6883's full-sized avatar
💻
waiting for AI bubble burst

Yuu Yuu6883

💻
waiting for AI bubble burst
View GitHub Profile
#include <iostream>
#include <random>
#include <vector>
#include <chrono>
#include <functional>
#include <algorithm>
#include <cassert>
using namespace std;
using namespace chrono;
@Yuu6883
Yuu6883 / git_traffic.py
Last active October 4, 2021 00:08
Usage: python git_traffic.py --token TOKEN --repos TXT_FILE_WITH_REPO_NAMES
import re
import json
import datetime
import argparse
import requests
def log(msg):
print(f"[{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] {msg}")
def get_traffic(repo, auth, all):