Skip to content

Instantly share code, notes, and snippets.

View BenLloydPearson's full-sized avatar

Ben Lloyd Pearson BenLloydPearson

View GitHub Profile
@BenLloydPearson
BenLloydPearson / github-team.py
Created May 25, 2018 17:43 — forked from krusynth/github-team.py
Python script to add all GitHub repositories to an organization team - permission is set to push. You'll need a settings.py file with your organization name and API key. Based off of my GitHub stats script (requirements.txt here): https://github.com/krues8dr/project-migration
#!/usr/bin/python
# Exports a CSV of repo names, readme files, and the license of the project.
from __future__ import print_function
import requests
import json
import settings
from urlparse import urlparse, parse_qs
import sys