bash上的curl手动命令运行良好,但使用python的os.system或crontab的同一命令不起作用

时间:2019-05-18 02:52:24

标签: python-2.7 curl

我无法自动运行curl脚本。 该命令在终端(Ubuntu 16.04)上手动运行良好, 但不适用于python的os.system或crontab。 如何自动运行curl脚本?

请帮助!

卷曲'https://www.coupang.com/np/categories/176532?listSize=120&brand=&offerCondition=&filterType=&isPriceRange=false&minPrice=&maxPrice=&page=1&channel=user&fromComponent=Y&selectedPlpKeepFilter=&sorter=bestAsc&filter=&component=176532&rating=0'-H'用户代理:Mozilla / 5.0(X11; Ubuntu; Linux x86_64; rv:65.0)Gecko / 20100101 Firefox / 65.0'-H'接受:文本/ html,应用程序/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8'-H'Accept-Language:en-US,en; q = 0.5'--compressed -H '连接:保活' -H $'的Cookie:ak_bmsc = 74F8E9A9F9DF9B961DC570F6D80E5E211735E4A4D17700007962DF5C792C4B7C〜plp5EwMHWoCRHHFnlbN0r + iNuWMIq65HZPGyS7XHguWHemaSnBh3 + 9nWF2BRVMv7gMjcjP28FhyVgwUQV4BoC6O39OvQff6oK8qq5Bn1ETPxzzY2asQbsq / NffKPznhqRVtodwD3QiFj526VmlP6kBNZoyf6NJFjisZ8kkOw / ZhOVMmqr3VjKn7wOWNZqx27k6ESHm71c + y4IF6Lq1TPJBc0AoaHlQ093GbMV + 9dvXZEJ + eE3UIPlyESY8E4KfImbN; sid = 2aaaf8c77471408287d909091e15eefe273b6831; PCID = 59917595789183730644121; overrideAbTestGroup =%5B%5D; bm_mi = 41F98B326E82B2B3B171BAA9AA780D76〜KppAX16P9PyjT2IYlxNsrYHE7Fz8SWunfr9bFT3JF6nfxzQdxL / YxxCrwRszvH0sqHyAXEaoEsXWg6eceXbXTtho / rFINwA + NaH8N6qL / nLZoM + IEYEi5cN9gDWNisX9HdruO / 32UmX6AdESy9VaRWtFhrgzX / BOpAgckbjwT45 / t6vA1DJgnyo9zOR4tTZIyhmu + YJW / HGzsAITYl8zhDCMO5qvzsViXfMB097K / 8NWNHFqVYOzF5lDMYQwwwtX7jLoC4gBsoZu5dHWjzYcnA ==; bm_sv = D77B4EDE6450F576B1D8C53208BB876E〜ooqN5 + 7HHRvruJjJNFhNjECJse + r07Tr2YBoewoW7qd9G1rJ0hb8HNhmZ3yajrGVO2CUinKltjuy00MAbvlGdRjOwYz5IwXfPigqiEactdORT3rAt3cmvlRYlb5B / oA53sta3fovkXcPVknyHzRAFQJA08bKckAYIWM7OenVF5M =; trac_src = 0; trac_spec = 0; trac_addtag = 0; trac_ctag =“”; trac_lptag =“”; trac_itime =“”; trac_sid =“”; trac_appver =“”; _fbp = fb.1.1558143612705.1800396441; _ga = GA1.2.1916076808.1558143613; _gid = GA1.2.649924885.1558143613; cto_lwid = 85120079-03e4-426d-a64c-899cebe8479a; FUN =“ {'search':[{'reqUrl':'/ search.pang','isValid':true}]}}”“; cto_idcpy = 0be22576-7201-4c0f-a1f8-8c8c8f0bed84; _gat_UA-17885426-32 = 1; baby-isWide =宽; searchSoterTooltip = OFF'-H'升级不安全请求:1'-H'TE:拖车'>输出

0 个答案:

没有答案