It may be an easy question but I can not configure it?
obj = bpy.data.objects['img']
mat = obj.active_material
texImage = mat.node_tree.nodes["Image Texture"]
texImage.image = bpy.data.images.load(p)
Above script working fine when I try to load the image from the local drive ie p='C:\Users\Downloads\pic\dog .png' but when I used the online URL ie p='https://cdn-icons-png.flaticon.com/512/2930/2930628.png' it was not working. So how can I do this? so that I can use the online URL. Any solution will be appreciated.