Created
October 3, 2012 17:42
-
-
Save davbo/3828523 to your computer and use it in GitHub Desktop.
Stop watching WebLearn repos
This file contains hidden or 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 | |
auth = (USER, PASS) | |
for repo in requests.get('https://api.github.com/user/subscriptions', params={'per_page': 100}, auth=auth).json: | |
if repo['name'].startswith('wl-'): | |
requests.delete('https://api.github.com/user/subscriptions/%s/%s' % (repo['owner']['login'], repo['name']), auth=auth) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment