We checked it and noticed two unrelated issues:
(1) The first issue is very easy. Your script requires HTTPS based URLs. In your example links, you used HTTP and FTP based URLs. Please change to HTTPS based URLs.
It is working for you now. Please let us know if you have any more questions.