我从网站上取了一些东西 并把它们储存在json的档案里
我的 items. py
代码是 :
job_title = Field()
full_or_part_Time = Field()
location_affiliates = Field()
department = Field()
requisition_number = Field()
获取后, json 文档中存储的物品以以下格式出现 :
{"full_or_part_Time": ["Full Time"],
"department": ["808 - Spons Prj Accounting"],
"requisition_number": ["12-1407456"],
"job_title": ["Accountant"],
"location_affiliates": ["Mount Sinai Medical Center (Manhattan)"]}
But i want to save the items in the format i declared in the items.py
file.
Can anyone please let me know how to arrange in the declared format.
提前感谢。