Typeerror: Object Of Type 'bytes' Is Not Json Serializable Python3
i received this error after running my spider i also have a pipeline and i convert everything into JSON but still got this error after my item return TypeError: Object of type 'b
TypeError: Objectoftype'PucItem' is not JSON serializable
This means you are using Scrapy's Item class
Solution is that either do this
item = json.dumps(dict(item))
Or in your Spider, do NOT use Item class to create item, just use a Dict like item = {}
Post a Comment for "Typeerror: Object Of Type 'bytes' Is Not Json Serializable Python3"