#68 的命令末尾加上这个可以直接过滤出优惠码:
| sed 's/.*\(PHOTO-OD-[A-Z0-9]\{12\}\).*/\n\n\1\n\n/g'
例:
curl ‘ https:/......... --compressed | sed 's/.*\(PHOTO-OD-[A-Z0-9]\{12\}\).*/\n\n\1\n\n/g'
完整命令:
curl '
https://submit.wayin.com/api/interact/d/record' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer:
https://xd.wayin.com/display/container/dc/bd3c09f5-92f1-4a19-a589-75556faf0b61/details' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.19 Safari/537.36 Edg/77.0.235.9' -H 'Sec-Fetch-Mode: cors' -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryAdNbRz3aViFMsrGs' --data-binary $'------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="isXHR"\r\n\r\ntrue\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="apikey"\r\n\r\nec66b72e-bb5d-4d2e-880e-9c646eaaeeda\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="containerId"\r\n\r\nbd3c09f5-92f1-4a19-a589-75556faf0b61\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="formId"\r\n\r\n245277\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="campaignId"\r\n\r\n185627\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="container_guid"\r\n\r\n10dad648-6c2b-4965-8430-e65dadf01974\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="promotionId"\r\n\r\n\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="ngxInvitedFriends"\r\n\r\n\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="channelId"\r\n\r\n13915\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="medium"\r\n\r\ndirect\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="source"\r\n\r\nweb\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="channel"\r\n\r\nwebsite\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="content"\r\n\r\n\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="activity"\r\n\r\n\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="r"\r\n\r\n\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="ngx_t_token"\r\n\r\nZUtZ5GsdUJSoLRT0H+Kn/kTezvy6uBOrhO8rXjaNU68=\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs\r\nContent-Disposition: form-data; name="cbh"\r\n\r\nhttps://
xd.wayin.com\r\n------WebKitFormBoundaryAdNbRz3aViFMsrGs--\r\n' --compressed | sed 's/.*\(PHOTO-OD-[A-Z0-9]\{12\}\).*/\n\n\1\n\n/g'
5 枚:
1. PHOTO-OD-MC41BG4VCRYW
2. PHOTO-OD-GL1Y0JRKBB1R
3. PHOTO-OD-1U3RJURYEQ9Q
4. PHOTO-OD-JQ0LLM1PTBSC
5. PHOTO-OD-NVMGD1LADJAF