[英]Im looking for a way to mass find/replace hyperlinks in a google drive file
Im currently performing a migration of data from Box to Google drive.我目前正在将数据从 Box 迁移到 Google Drive。 Most of these files contain links that reference, and then take the user to, other files within the box drive.
这些文件中的大多数都包含引用,然后将用户带到盒式驱动器中的其他文件的链接。
However, when i do eventually migrate the files to google drive, the old links will break and become obsolete as the previous location in Box will no longer exist.但是,当我最终将文件迁移到谷歌驱动器时,旧链接将断开并过时,因为 Box 中的先前位置将不再存在。
Writing a find/replace script that updates the strings wont work as although the string changes the URL_link attached to it stays the same, does anybody have any suggestions?编写更新字符串的查找/替换脚本将不起作用,因为尽管字符串更改了附加到它的 URL_link 保持不变,有人有任何建议吗? I can't seem to find anything about this in the google API.
我似乎在 google API 中找不到任何关于此的信息。
I had the idea of breaking the link, updating the string, and then making it a link again.我的想法是断开链接,更新字符串,然后再次将其设为链接。 But once again, i can't seem to find how to create a link from a string in the API.
但再一次,我似乎无法找到如何从 API 中的字符串创建链接。
Any help would be really appreciated, thanks任何帮助将不胜感激,谢谢
You can automate this using the Google APIs.您可以使用 Google API 自动执行此操作。 These are the following steps I would follow to achieve what you are aiming for here:
这些是我将遵循的以下步骤,以实现您在这里的目标:
If you have issues regarding the change of attached links as you mentioned in your question, check out this other Stack Overflow answer that addresses this problems.
如果您对问题中提到的附加链接的更改有疑问,请查看解决此问题的其他 Stack Overflow 答案。
I hope this has helped you.我希望这对你有帮助。 Let me know if you need anything else or if you did not understood something.
如果您需要其他任何东西或者您不理解某些东西,请告诉我。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.