热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

从url获取图片,然后重命名图片-GETpicturesfromaurlandthenrenamethepicture

Ihaveaexcellistwithalotofarticlenumbers,eg.23378847.AndIwantthepicturesofallmy

I have a excel list with a lot of article numbers, eg. "23378847". And I want the pictures of all my article numbers in the list stored in my folder.

我有一个包含大量文章编号的excel列表。“23378847”。我想要所有我的文章编号的图片都存储在我的文件夹里。

But the result will be as under. It should be 23378847.jpg not 152499

但结果将是一样的。应该是23378847.jpg而不是152499

http://media.byggtjeneste.no/media/bilde/152499/LargeThumbnail
or
http://www.nobb.no/Nobbnr/OrginalBilde/23378847/152499

http://media.byggtjeneste。没有/媒体/博斯曼/ 152499 / LargeThumbnail或http://www.nobb.no/Nobbnr/OrginalBilde/23378847/152499

Is there a way that I can make a scrips that read my file and save the pic with the same article number as in the list?

是否有一种方法可以让我做一个可以读取我的文件并保存与列表中相同的文章编号的图片的脚本?

1 个解决方案

#1


22  

Here is a sample which will help you.

这是一个样品,对你有帮助。

I am assuming that your Excel file will look like this. Please amend the code as applicable.

我假设您的Excel文件是这样的。请根据需要修改代码。


推荐阅读
author-avatar
Sheen2602906613
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有