2018-03-01, 19:07
@Daveabuk You need to understand the difference between byte and textual (Unicode) strings. And it's bad idea to use urllib2 unless you know what you are doing. The requests library is better in all respects, including auto-decoding web-page contents using an appropriate encoding based on pages metadata and HTTP headers.