Convert XMLHttpRequest to python requests
问题 I found an XHR request for a website, now I want to convert this request to corresponding python/requests code and struggled at how to parse the responseType to corresponding replacement code, here is the download script: const download = (url, params = {}, dowType, name, img, method) => new Promise((resolve, reject) => { const _tmpArr = Object.keys(params) || []; const _formData = new FormData(); _tmpArr.map(value => { if (params[value] || params[value] === 0 || params[value] === '') {