Created
May 17, 2019 15:18
-
-
Save CyrusF/b48ccd2b542f63183ed383a161ad6540 to your computer and use it in GitHub Desktop.
a python script for generate garageband resource url for download faster in China mainland
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s=""" | |
balabala | |
plist 内容右键 Copy 到这里 | |
balabala | |
""" | |
while "<string>" in s: | |
x = s.partition("<string>")[2].partition("</string>")[0] | |
if x.endswith(".pkg"): | |
print("http://audiocontentdownload.apple.com/lp10_ms3_content_2016/"+x) # 注意不要删除 http:// | |
s = s.partition("</string>")[2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一共四个步骤: