{"action":"created","issue":{"url":"https://api.github.com/repos/peterbe/premailer/issues/129","labels_url":"https://api.github.com/repos/peterbe/premailer/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/peterbe/premailer/issues/129/comments","events_url":"https://api.github.com/repos/peterbe/premailer/issues/129/events","html_url":"https://github.com/peterbe/premailer/issues/129","id":92143747,"number":129,"title":"Switch to depend on requests library","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-06-30T16:55:40Z","updated_at":"2015-07-22T22:54:19Z","closed_at":null,"body":"I have had more than one problem with the built-in `urlopen()` to download certain URLs. \r\n[This one](https://scotch.io/tutorials/getting-to-know-flux-the-react-js-architecture) for example fails on some SSL trouble in `urlopen` but opens nicely with `requests` from my OSX laptop. \r\n\r\nI thought Python 3 was supposed to have `requests` built in so maybe this is only necessary for Python 2. "},"comment":{"url":"https://api.github.com/repos/peterbe/premailer/issues/comments/123897096","html_url":"https://github.com/peterbe/premailer/issues/129#issuecomment-123897096","issue_url":"https://api.github.com/repos/peterbe/premailer/issues/129","id":123897096,"user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T22:54:19Z","updated_at":"2015-07-22T22:54:19Z","body":"My view is that anything overly complex is going to mean more code to maintain. A switch to relying on `requests` is straightforward and it's an established and good package. It just swaps out the `urllib.urlopen` for a different opener and that's about it. Doesn't try to solve other problems as well. "}}