Posts by Baco23 • 13 points
1 post
-
1
votes1
answer5950
viewsQ: bytes-like Object is required, not 'str'
I’m trying to run this code: import time import urllib.request from urllib.request import urlopen ibov = ['BBAS3.SA', 'PETR4.SA'] def yahooKeyStats(stock): try: sourceCode = urllib.request.urlopen…