text: import requests
  import json
  
  """
  这个是用来下载赖世雄美语从头学练习册的练习mp3的。
  https://appymk8ms6i9430.h5.xiaoeknow.com/v1/course/column/p_5bf51a969bcb2_yOGUMRw7?type=3
  """
  
  url="https://appymk8ms6i9430.h5.xiaoeknow.com/column_more_data_v2/column_more_data?1634282465568=" #打开页面要换成自己浏览器访问的。
  #隔天失效
  
  headers={
  'Host':'appymk8ms6i9430.h5.xiaoeknow.com',
  'Origin':'https://appymk8ms6i9430.h5.xiaoeknow.com',
  'Referer':'https://appymk8ms6i9430.h5.xiaoeknow.com/v1/course/column/p_5bf51a969bcb2_yOGUMRw7?type=3',
  'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.47',
  #cookie也是要换成当天自己的。隔天失效
  'Cookie':'anony_token=8bc7478388fa27e3e1040b24cb1b51e6;'
           ' xenbyfpfUnhLsdkZbX=0;'
           ' sa_jssdk_2015_appymk8ms6i9430_h5_xiaoeknow_com=%7B%22distinct_id%22%3A%2217c7e75beba634-0960a20003e1808-4c3e2679-1327104-17c7e75bebc28%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%7D; sensorsdata2015jssdkcross=%7B%22%24device_id%22%3A%2217c7e75beba634-0960a20003e1808-4c3e2679-1327104-17c7e75bebc28%22%7D; shop_version_type=4; dataUpJssdkCookie={"wxver":"","net":"","sid":""}',
  'TE': 'trailers'
  }
  
  data ={
  'bizData[page_size]':"6", #翻页参数。
  'bizData[isDesc]':"1",
  'bizData[content_app_id]':"",
  'bizData[channel_id]':"",
  'bizData[product_id]':"p_5bf51a969bcb2_yOGUMRw7",
  'bizData[product_id]':"p_5bf51a969bcb2_yOGUMRw7",
  'bizData[qy_app_id]':"",
  }
  response = requests.post(url=url,headers=headers,data=data)
  response.encoding="utf-8"
  
  print(response.text)
  print(response.status_code)
  da = json.loads(response.text)
  da1= da['data']['contentData']['contentInfo']
  print(da1)
  for item in da1:
      da3_name = item['resource_name']
      da3_url = item['audio_compress_url']
      print(da3_name,da3_url)
      response = requests.get(url=da3_url)
      name=da3_name+".mp3"
      with open(name,'wb') as f:
          f.write(response.content)