dcstats / CBBpy

A Python-based web scraper for NCAA basketball.
MIT License
11 stars 2 forks source link

InvalidHeader raised by requests #45

Closed dcstats closed 8 months ago

dcstats commented 8 months ago

Requests >=2.28.0 has stricter rules when parsing headers; need to cast User-Agent and Referer as strings when choosing random value via np.random.choice

dcstats commented 8 months ago

InvalidHeader: Header part ('XXXX'} must be of type str or bytes, not <class 'numpy.str_'>