def __init__(self, gen):
        self.content = None
        self.gen = gen
        github_url = GITHUB_API.format(self.gen.settings['GITHUB_USER'])
        try:
            f = urlopen(github_url)
            # 3 vs 2 makes us have to do nasty stuff to get encoding without
            # being 3 or 2 specific. So... Yeah.
            encoding = f.headers['content-type'].split('charset=')[-1]
            c = f.read().decode(encoding)
        except __HOLE__:
            logger.warning("unable to open {0}".format(github_url))
            return
        self.content =  json.loads(c)
dataset/ETHPy150Open kura/pelican-githubprojects/pelican_githubprojects/github.py/GithubProjects.__init__