{"action":"created","issue":{"url":"https://api.github.com/repos/okfn-brasil/serenata-toolbox/issues/206","repository_url":"https://api.github.com/repos/okfn-brasil/serenata-toolbox","labels_url":"https://api.github.com/repos/okfn-brasil/serenata-toolbox/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/okfn-brasil/serenata-toolbox/issues/206/comments","events_url":"https://api.github.com/repos/okfn-brasil/serenata-toolbox/issues/206/events","html_url":"https://github.com/okfn-brasil/serenata-toolbox/issues/206","id":394164868,"node_id":"MDU6SXNzdWUzOTQxNjQ4Njg=","number":206,"title":"Cannot use ChamberDataset() to download data","user":{"login":"mnunes","id":4070372,"node_id":"MDQ6VXNlcjQwNzAzNzI=","avatar_url":"https://avatars1.githubusercontent.com/u/4070372?v=4","gravatar_id":"","url":"https://api.github.com/users/mnunes","html_url":"https://github.com/mnunes","followers_url":"https://api.github.com/users/mnunes/followers","following_url":"https://api.github.com/users/mnunes/following{/other_user}","gists_url":"https://api.github.com/users/mnunes/gists{/gist_id}","starred_url":"https://api.github.com/users/mnunes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnunes/subscriptions","organizations_url":"https://api.github.com/users/mnunes/orgs","repos_url":"https://api.github.com/users/mnunes/repos","events_url":"https://api.github.com/users/mnunes/events{/privacy}","received_events_url":"https://api.github.com/users/mnunes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-26T13:09:55Z","updated_at":"2018-12-27T10:56:12Z","closed_at":null,"author_association":"NONE","body":"I was trying to download chamber of deputies reimbursements data using the following code:\r\n\r\n    import numpy\r\n    from serenata_toolbox.chamber_of_deputies.reimbursements import Reimbursements as ChamberDataset\r\n    \r\n    years = numpy.arange(2009, 2019, 1)\r\n    \r\n    for j in years:\r\n        chamber = ChamberDataset(j, 'data_camara/')\r\n        chamber()\r\n\r\nHowever, this is the error I get when I run my code:\r\n\r\n    Traceback (most recent call last):\r\n      File \"<stdin>\", line 3, in <module>\r\n      File \"/usr/local/lib/python3.7/site-packages/serenata_toolbox/chamber_of_deputies/reimbursements.py\", line 28, in __call__\r\n        self.fetch()\r\n      File \"/usr/local/lib/python3.7/site-packages/serenata_toolbox/chamber_of_deputies/reimbursements.py\", line 35, in fetch\r\n        urlretrieve(URL.format(self.year), file_path)\r\n      File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 247, in urlretrieve\r\n        with contextlib.closing(urlopen(url, data)) as fp:\r\n      File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 222, in urlopen\r\n        return opener.open(url, data, timeout)\r\n      File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 531, in open\r\n        response = meth(req, response)\r\n      File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 641, in http_response\r\n        'http', request, response, code, msg, hdrs)\r\n      File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 569, in error\r\n        return self._call_chain(*args)\r\n      File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 503, in _call_chain\r\n        result = func(*args)\r\n      File \"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 649, in http_error_default\r\n        raise HTTPError(req.full_url, code, msg, hdrs, fp)\r\n    urllib.error.HTTPError: HTTP Error 404: Not Found\r\n\r\nSince I am getting a 404 error, I opened `reimbursements.py` to see what is happening and it seems  there is a problem on [https://www.camara.leg.br/](https://www.camara.leg.br/) website. Do you have any idea what is going on and how can it be fixed?\r\n\r\nSenate data can be downloaded without any issue."},"comment":{"url":"https://api.github.com/repos/okfn-brasil/serenata-toolbox/issues/comments/450128929","html_url":"https://github.com/okfn-brasil/serenata-toolbox/issues/206#issuecomment-450128929","issue_url":"https://api.github.com/repos/okfn-brasil/serenata-toolbox/issues/206","id":450128929,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDEyODkyOQ==","user":{"login":"cuducos","id":4732915,"node_id":"MDQ6VXNlcjQ3MzI5MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/4732915?v=4","gravatar_id":"","url":"https://api.github.com/users/cuducos","html_url":"https://github.com/cuducos","followers_url":"https://api.github.com/users/cuducos/followers","following_url":"https://api.github.com/users/cuducos/following{/other_user}","gists_url":"https://api.github.com/users/cuducos/gists{/gist_id}","starred_url":"https://api.github.com/users/cuducos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuducos/subscriptions","organizations_url":"https://api.github.com/users/cuducos/orgs","repos_url":"https://api.github.com/users/cuducos/repos","events_url":"https://api.github.com/users/cuducos/events{/privacy}","received_events_url":"https://api.github.com/users/cuducos/received_events","type":"User","site_admin":false},"created_at":"2018-12-27T10:56:12Z","updated_at":"2018-12-27T10:56:12Z","author_association":"MEMBER","body":"> it seems there is a problem on https://www.camara.leg.br/ website.\r\n\r\nYep, that's the case. Have they changed the URL or was the service temporarily down?"}}
{"actor":{"display_login":"cuducos"}}