{"action":"created","issue":{"url":"https://api.github.com/repos/StevenBlack/hosts/issues/514","repository_url":"https://api.github.com/repos/StevenBlack/hosts","labels_url":"https://api.github.com/repos/StevenBlack/hosts/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/StevenBlack/hosts/issues/514/comments","events_url":"https://api.github.com/repos/StevenBlack/hosts/issues/514/events","html_url":"https://github.com/StevenBlack/hosts/issues/514","id":300048106,"number":514,"title":"CANNOT using someonewhocares.org cause ENCODING or DOWNLOAD issue","user":{"login":"FadeMind","id":9846948,"avatar_url":"https://avatars1.githubusercontent.com/u/9846948?v=4","gravatar_id":"","url":"https://api.github.com/users/FadeMind","html_url":"https://github.com/FadeMind","followers_url":"https://api.github.com/users/FadeMind/followers","following_url":"https://api.github.com/users/FadeMind/following{/other_user}","gists_url":"https://api.github.com/users/FadeMind/gists{/gist_id}","starred_url":"https://api.github.com/users/FadeMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FadeMind/subscriptions","organizations_url":"https://api.github.com/users/FadeMind/orgs","repos_url":"https://api.github.com/users/FadeMind/repos","events_url":"https://api.github.com/users/FadeMind/events{/privacy}","received_events_url":"https://api.github.com/users/FadeMind/received_events","type":"User","site_admin":false},"labels":[{"id":717451704,"url":"https://api.github.com/repos/StevenBlack/hosts/labels/help%20wanted","name":"help wanted","color":"05aaa2","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-25T18:17:19Z","updated_at":"2018-02-27T16:00:47Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When I add `someonewhocares.org` directory to `data` dir, then I cannot update hosts file due error:\r\nPython2 - cannot finish download hosts file from `someonewhocares.org`\r\nPython3 - finish download file, but ENCODING error made:\r\n```\r\n[fademind@manjaro hsts.test]$ python3 updateHostsFile.py -a -c\r\nUpdating source data/add.Risk from https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts\r\nTraceback (most recent call last):\r\n  File \"updateHostsFile.py\", line 1416, in <module>\r\n    main()\r\n  File \"updateHostsFile.py\", line 167, in main\r\n    update_all_sources(source_data_filename, settings[\"hostfilename\"])\r\n  File \"updateHostsFile.py\", line 603, in update_all_sources\r\n    update_data = json.load(update_file)\r\n  File \"/usr/lib/python3.6/json/__init__.py\", line 296, in load\r\n    return loads(fp.read(),\r\n  File \"/usr/lib/python3.6/encodings/ascii.py\", line 26, in decode\r\n    return codecs.ascii_decode(input, self.errors)[0]\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 27: ordinal not in range(128)\r\n```\r\n\r\nWhen I delete `someonewhocares.org` dir from `data` dir generate hosts file went FINE:\r\n\r\n```\r\n[fademind@manjaro ~]$ uhf\r\nUpdating source data/add.Risk from https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts\r\nUpdating source data/CoinBlockerLists from https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts_browser\r\nUpdating source data/adaway.org from https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt\r\nUpdating source data/tyzbit from https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts\r\nUpdating source data/StevenBlack from https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts\r\nUpdating source data/add.2o7Net from https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts\r\nUpdating source data/UncheckyAds from https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts\r\nUpdating source data/mvps.org from http://winhelp2002.mvps.org/hosts.txt\r\nUpdating source data/hpHosts-ATS from https://hosts-file.net/ad_servers.txt\r\nUpdating source data/add.Dead from https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts\r\nUpdating source data/hpHosts-EMD from https://hosts-file.net/emd.txt\r\nUpdating source data/yoyo.org from https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0\r\nUpdating source data/hpHosts-MMT from https://hosts-file.net/mmt.txt\r\nUpdating source data/KADhosts from https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt\r\nUpdating source data/Badd-Boyz-Hosts from https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts\r\nUpdating source data/malwaredomainlist.com from http://www.malwaredomainlist.com/hostslist/hosts.txt\r\nUpdating source data/Spotify-Ad-free from https://raw.githubusercontent.com/CHEF-KOCH/Spotify-Ad-free/master/Spotifynulled.txt\r\nUpdating source data/add.Spam from https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts\r\nUpdating source extensions/fakenews from https://raw.githubusercontent.com/marktron/fakenews/master/fakenews\r\nUpdating source extensions/social from https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/social-hosts\r\nUpdating source extensions/porn/clefspeare13 from https://raw.githubusercontent.com/Clefspeare13/pornhosts/master/0.0.0.0/hosts\r\nUpdating source extensions/porn/sinfonietta-snuff from https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts\r\nUpdating source extensions/porn/sinfonietta from https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/pornography-hosts\r\nUpdating source extensions/gambling from https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/gambling-hosts\r\n==>0.0.0.0 12.170.116.68<==\r\n==>0.0.0.0 164.109.51.67<==\r\n==>0.0.0.0 5.100.249.215<==\r\n==>0.0.0.0 74.112.173.77<==\r\n==>0.0.0.0 91.205.157.38<==\r\n==>0.0.0.0 91.212.132.230<==\r\nSuccess! The hosts file has been saved in folder \r\nIt contains 246,768 unique entries.\r\nMoving the file requires administrative privileges. You might need to enter your password.\r\nFlushing the DNS cache to utilize new hosts file...\r\nFlushing the DNS cache requires administrative privileges. You might need to enter your password.\r\nFlushing the DNS cache by restarting NetworkManager.service succeeded\r\nFlushing the DNS cache by restarting dnsmasq.service succeeded\r\nFlushing the DNS cache by restarting NetworkManager.service succeeded\r\nFlushing the DNS cache by restarting dnsmasq.service succeeded\r\n```"},"comment":{"url":"https://api.github.com/repos/StevenBlack/hosts/issues/comments/368928148","html_url":"https://github.com/StevenBlack/hosts/issues/514#issuecomment-368928148","issue_url":"https://api.github.com/repos/StevenBlack/hosts/issues/514","id":368928148,"user":{"login":"FadeMind","id":9846948,"avatar_url":"https://avatars1.githubusercontent.com/u/9846948?v=4","gravatar_id":"","url":"https://api.github.com/users/FadeMind","html_url":"https://github.com/FadeMind","followers_url":"https://api.github.com/users/FadeMind/followers","following_url":"https://api.github.com/users/FadeMind/following{/other_user}","gists_url":"https://api.github.com/users/FadeMind/gists{/gist_id}","starred_url":"https://api.github.com/users/FadeMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FadeMind/subscriptions","organizations_url":"https://api.github.com/users/FadeMind/orgs","repos_url":"https://api.github.com/users/FadeMind/repos","events_url":"https://api.github.com/users/FadeMind/events{/privacy}","received_events_url":"https://api.github.com/users/FadeMind/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T16:00:47Z","updated_at":"2018-02-27T16:00:47Z","author_association":"CONTRIBUTOR","body":"@StevenBlack Issue ASCII encoding was reported here : https://github.com/StevenBlack/hosts/issues/420\r\n\r\n"}}
{"actor":{"display_login":"FadeMind"}}