Closed dcstats closed 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
User-Agent
Referer
np.random.choice
InvalidHeader: Header part ('XXXX'} must be of type str or bytes, not <class 'numpy.str_'>
Requests >=2.28.0 has stricter rules when parsing headers; need to cast
User-Agent
andReferer
as strings when choosing random value vianp.random.choice