Encoding error encountered when climbing Dangdang: input conversion failed due to input error, bytes 0xAC 0x4E 0x00 0x00
The reason is that bs4 will read html when parsing dom
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
Maybe the input is already a decoded string, and the encoding is not necessarily correct, you can delete this line or directly give the binary string