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
Solution 1:
TypeError: Object of type '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"