```
import requests
import json
if __name__=='__main__':
headers={
'User-Agent':'Mozilla/5.0 (Windows NT 10.0. Win64
}
url = 'https://movie.douban.com/j/search_subjects?type=movie&tag=%E7%83%AD%E9%97%AB%page_limit=50_start=0'
req=requests.get(url,headers=headers)
dic_data=json.loads(req.content.decode())
result_dict=dict_data['subjects']
movie_list=[]
for result in result_dict:
temp={}
temp['rate'] = result['rate']
temp['title'] = result['title']
temp['url'] = result['url']
movie_list.appent(temp)
with open('douban.json', ' w') as file:
for movie in movie_list:
data = json.dumps(movie, ensure_ascii=False)+",\n"
file.write(data
```