Skip to content

Instantly share code, notes, and snippets.

@davbo
Created October 3, 2012 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davbo/3828523 to your computer and use it in GitHub Desktop.
Save davbo/3828523 to your computer and use it in GitHub Desktop.
Stop watching WebLearn repos
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