0

I'm a beginner in python and I'm getting the following error message

a bytes-like object is required, not 'str'

This is my code:

data = urllib2.urlopen(target_url)

xList = []
labels = []
for line in data:
    row = line.strip().split(",")

anyone can help me. thanks

Andrew LaPrise
  • 3,373
  • 4
  • 32
  • 50

0 Answers0