|
|
|
|
|
by typest
1228 days ago
|
|
The other day, I was trying to build a web scraper, but I kept getting an error that the data wasn't utf-8 encoded. I gave chatgpt the error along with the first 10 bytes (e.g. b'\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03') and it informed me that this was a gzip-encoded binary file, and then it wrote me working code to decompress the file. This is extremely valuable and saved me hours/was the difference between me stopping or not. There will surely be people that overhype this, but there is real value as well. |
|
[1] https://stackoverflow.com/questions/58552645/what-exactly-is...
[2] https://stackoverflow.com/questions/57328953/trying-to-decod...