Python; urllib error: AttributeError: 'bytes' object has no attribute 'read?

You are the greatest. I've searched for the answer forever, this works – Parseltongue Jul 1 at 0:00.

Use json. Loads not json.load. (load loads from a file-like object, loads from a string.So you could just as well omit the .read() call instead.

).

Does not work. If you include the . Read, this error is prompted: TypeError: can't use a string pattern on a bytes-like object If you remove the .read(), you get this error: TypeError: expected string or buffer – Parseltongue Jun 30 at 22:33.

I'm not familiar with python 3 yet, but it seems like urllib.request.urlopen().read() returns a byte object rather than string. You might try to feed it into a StringIO object, or even do a str(response).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions