I just started programming Python. I want to use scrapy to create a bot,and it showed TypeError: Object of type \'bytes\' is not JSON serializable when I run the project. <
I guess the answer you need is referenced here Python sets are not json serializable
Not all datatypes can be json serialized . I guess pickle module will serve your purpose.