HenryzhaoH/sharepoint-batch-download-listgen

解析出来的链接不对,下载下来的文件内容全是html

zhangyimi opened this issue · 3 comments

下载下来的文件全是html
`

<title>
错误
</title> <style id="SPThemeHideForms" type="text/css">body {opacity:0 !important}</style><script type="text/javascript">// var _initGlobalSnapShot = {};try { if (Object.keys(_initGlobalSnapShot).length == 0) { for (var memberIndex in window) { if (Boolean(memberIndex)) { _initGlobalSnapShot[memberIndex] = 1; } } }} catch (ex) {};
// ]]>
</script>

<script type="text/javascript">// </script> <script type="text/javascript" src="https://statica.akamai.odsp.cdn.office.net/bld/_layouts/15/16.0.21402.12004/2052/initstrings.js"></script> <script type="text/javascript" src="https://statica.akamai.odsp.cdn.office.net/bld/_layouts/15/16.0.21402.12004/init.js"></script> <script type="text/javascript" src="https://statica.akamai.odsp.cdn.office.net/bld/_layouts/15/16.0.21402.12004/theming.js"></script> <script type="text/javascript" src="/ScriptResource.axd?d=Zb67MfbjIOLTmUNXFiJcP2wz9AHL-VvQ_qBcEkEtFNiJlWqzIhc-H474-u1sr2B6yFoUx7X7F9-Ww6CWWmP0A_j9oa8AGjpseSSJVg9SVNotzfZZ_wERgoIVNDc88RSFzjnH3GLzhWIM39uAFOxsXW7VfVj5bbqtrhC052kfyP6rAKzilWeGIVRerQ0zG3IN0&t=363be08"></script> <script type="text/javascript" src="https://statica.akamai.odsp.cdn.office.net/bld/_layouts/15/16.0.21402.12004/blank.js"></script> <script type="text/javascript">RegisterSod("require.js", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002frequire.js");</script> <script type="text/javascript">RegisterSod("strings.js", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002f2052\u002fstrings.js");</script> <script type="text/javascript">RegisterSod("sp.res.resx", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002f2052\u002fsp.res.js");</script> <script type="text/javascript">RegisterSod("sp.runtime.js", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002fsp.runtime.js");RegisterSodDep("sp.runtime.js", "sp.res.resx");</script> <script type="text/javascript">RegisterSod("sp.js", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002fsp.js");RegisterSodDep("sp.js", "sp.runtime.js");RegisterSodDep("sp.js", "sp.ui.dialog.js");RegisterSodDep("sp.js", "sp.res.resx");</script> <script type="text/javascript">RegisterSod("sp.init.js", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002fsp.init.js");</script> <script type="text/javascript">RegisterSod("sp.ui.dialog.js", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002fsp.ui.dialog.js");RegisterSodDep("sp.ui.dialog.js", "sp.init.js");RegisterSodDep("sp.ui.dialog.js", "sp.res.resx");</script> <script type="text/javascript">RegisterSod("core.js", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002fcore.js");RegisterSodDep("core.js", "strings.js");</script> <script type="text/javascript">RegisterSod("foldhyperlink.js", "https:\u002f\u002fstatica.akamai.odsp.cdn.office.net\u002fbld\u002f_layouts\u002f15\u002f16.0.21402.12004\u002ffoldhyperlink.js");</script>
<meta name="Robots" content="NOINDEX " />
<meta name="SharePointError" content="0" />
<script type="text/javascript"> // </script> <script src="https://statica.akamai.odsp.cdn.office.net/bld/_layouts/15/16.0.21402.12004/blank.js" type="text/javascript"></script> <script type="text/javascript"> // </script>
<div id="ms-error-header" class="ms-pr">
	<h1 class="ms-core-pageTitle">

<div id="ctl00_PlaceHolderPageTitleInTitleArea_ErrorPageTitlePanel">

很抱歉,出现了问题
	</h1>
	<div>

	</div>
</div>
<div id="ms-error">
	<div id="ms-error-top">

	</div>
	<div id="ms-error-content">
		<div id="ms-error-error-content">
			<div id="DeltaPlaceHolderMain">




<div>
	<span id="ctl00_PlaceHolderMain_LabelMessage">未找到文件。</span>

</div>
<div id="ctl00_PlaceHolderMain_FoldPanel" class="ms-error-detailsFold">

	<div id="ctl00_PlaceHolderMain_FoldLink_foldLinkWrapper">

<div id="ctl00_PlaceHolderMain_FoldLink_foldLinkPanel" class="ms-foldHyperLink-panel" onclick="EnsureScriptParams(&#39;foldhyperlink.js&#39;, &#39;ToggleFoldText&#39;, &#39;d16249d2c6594326950a956a2211805a&#39;, &#39;ctl00_PlaceHolderMain_FoldLink__moreDetailsLink&#39;, &#39;技术详细信息&#39;, &#39;技术详细信息&#39;);;return false;">

	<a id="ctl00_PlaceHolderMain_FoldLink__moreDetailsLink" class="ms-commandLink ms-floatLeft" href="#" onclick="PreventDefaultNavigation();">技术详细信息</a>
	<div class="ms-clear"></div>

		</div>

	</div><div class="ms-hide" id="d16249d2c6594326950a956a2211805a">

		<div>
			<p>
				<span class="ms-descriptiontext">

				</span>
			</p>
			<p>
				<span class="ms-descriptiontext">

				</span>
			</p>
			<p>
				<span class="ms-descriptiontext">

					<div id="ctl00_PlaceHolderMain_FoldLink_WSSEndUser_troubleshootingPanel">

						<span id="ctl00_PlaceHolderMain_FoldLink_helptopic_WSSEndUser_troubleshooting"><a title="Microsoft SharePoint Foundation 疑难解答。 - 在新窗口中打开" href="javascript:HelpWindowKey('WSSEndUser_troubleshooting')">Microsoft SharePoint Foundation 疑难解答。</a></span>

	</div>
				</span>
			</p>
			<p>
				<span id="ctl00_PlaceHolderMain_FoldLink_RequestGuidText" class="ms-metadata">相关 ID:  7606d39f-f0ab-c000-2ff7-ffebb5c7d1af</span>
			</p>
			<p>
				<span id="ctl00_PlaceHolderMain_FoldLink_DateTimeText" class="ms-metadata">日期和时间: 2021/6/18 1:26:35</span>
			</p>
		</div>
	</div>

</div>
<div class="ms-error-techMsg">
	<hr />
</div>
<script type="text/javascript">// <![CDATA[


	var gearPage = document.getElementById('ms-loading-box');
	if(null != gearPage)
	{
		gearPage.parentNode.removeChild(gearPage);
		document.title = "错误";
	}
	function _spBodyOnLoad()
	{
		var intialFocus = (document.getElementById("ctl00_PlaceHolderMain_FoldLink__moreDetailsLink"));
		try
		{
			intialFocus.focus();
		}
		catch(ex)
		{
		}
	}
	function _onmessage(e)
	{
		if (e && window.JSON)
		{
			var origin = e.origin;
			var data = e.data;
			if (window.console && window.console.log)
			{
				console.log("ErrorPage.OnMessage: Origin=" + origin + ", Data=" + data);
			}
			var requestInfo = JSON.parse(data);
			if (requestInfo && (requestInfo.command == 'Ping' || requestInfo.command == 'Query'))
			{
				var requestGuidElem = (document.getElementById("ctl00_PlaceHolderMain_FoldLink_RequestGuidText"));
				var responseInfo = {};
				responseInfo.command = requestInfo.command;
				responseInfo.postMessageId = requestInfo.postMessageId;
				responseInfo.responseAvailable = false;
				responseInfo.errorCode = -1007;
				var errorMessage;
				if (requestGuidElem)
				{
					errorMessage = requestGuidElem.textContent;
					if (typeof(errorMessage) == "undefined")
					{
						errorMessage = requestGuidElem.innerText;
					}
				}
				if (typeof(errorMessage) == "undefined")
				{
					errorMessage = "Error";
				}
				responseInfo.errorMessage = errorMessage;
				if (window.parent && window.parent.postMessage)
				{
					data = JSON.stringify(responseInfo);
					if (window.console && window.console.log)
					{
						console.log("ErrorPage.PostMessage: Origin=" + origin + ", Data=" + data);
					}
					window.parent.postMessage(data, origin);
				}
			}
		}
	}
	if (window.addEventListener) {
		window.addEventListener('message', _onmessage, false);
	}
	else if (window.attachEvent) {
		window.attachEvent('onmessage', _onmessage);
	}
// ]]>
</script>
			<div id="ms-error-gobackcont" class="ms-calloutLink">
				<a href="/personal/xuzn_mail2_sysu_edu_cn" class='ms-calloutLink' id="ctl00_PlaceHolderGoBackLink_idSimpleGoBackToHome">返回网站</a>
			</div>

	</div>
</div>
<script type="text/javascript"> // </script> <script type="text/javascript" nonce="8f1d6ffe-78cd-498b-83bf-93222c1d900c"> var g_duration = 2511; var g_iisLatency = 1; var g_cpuDuration = 2379; var g_queryCount = 9; var g_queryDuration = 29; var g_requireJSDone = new Date().getTime();`

https://mail2sysueducn-my.sharepoint.com/personal/xuzn_mail2_sysu_edu_cn/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fxuzn%5Fmail2%5Fsysu%5Fedu%5Fcn%2FDocuments%2FSyntax%2DEnhanced%20Pre%2Dtraining%20Data&originalPath=aHR0cHM6Ly9tYWlsMnN5c3VlZHVjbi1teS5zaGFyZXBvaW50LmNvbS86ZjovZy9wZXJzb25hbC94dXpuX21haWwyX3N5c3VfZWR1X2NuL0VsckpzaUVieks5S2xSSW5vQmJtcjFvQnVDbVVkUlBWVGREdnlrMDVHTFB0Y3c%5FcnRpbWU9Z3N1WS1YRXkyVWc
能帮忙看下这个链接该如何解析么

感觉 onedrive 可能有过更新。目前我的经验是地址里的 id 参数要比 Dev 工具请求的那个更准确。

解析的没问题,od下载会有个类似重定向的过程,结果aria2下到这个重定向的文件了…………不过我除了多下载几次外不知道咋解决