def run(self):
        try:
            request = urllib.request.Request('https://www.myget.org/F/aspnetvnext/api/v2/Packages()?$select=Id&$format=json&orderby=DownloadCount&$top=100',
                headers={'User-Agent': 'Sublime'})
            http_file = urllib.request.urlopen(request, timeout=self.timeout)
            self.result = []
            response = json.loads(http_file.read().decode('utf-8'))['d']
            for package in response:
                self.result.append(package['Id'])
            print(self.result)
            return
        except (urllib.request.HTTPError) as e:
            self.message = '%s: HTTP error %s contacting API' % (__name__, str(e.code))
        except (urllib.request.URLError) as e:
            self.message = '%s: URL error %s contacting API' % (__name__, str(e.reason))
        self.result = False
        return
dataset/ETHPy150Open OmniSharp/Kulture/Kulture.py/RetrievePackageNames.run/original