当前位置: 首页 > news >正文

用html做卖珠宝的网站如何搭建个人网站

用html做卖珠宝的网站,如何搭建个人网站,深圳市龙华区大浪街道,做网站哪个公司好 快选宁陵建站宝遇到一个需求:给了一个excel表,里面有很多网址图片,要把图片下载到本地。手动操作的话就是在浏览器里输入网址,再图片另存为保存。这篇文章介绍一下使用python代码批量实现 第一步操作就是实现从网上下图片,这个用到了…

  遇到一个需求:给了一个excel表,里面有很多网址图片,要把图片下载到本地。手动操作的话就是在浏览器里输入网址,再图片另存为保存。这篇文章介绍一下使用python代码批量实现

 第一步操作就是实现从网上下图片,这个用到了urlretrieve,使用模板如下:

from urllib.request import urlretrieve
urlretrieve(web_path, save_path)

参考:https://blog.csdn.net/qq_28304687/article/details/76551196/

实现源码:

from urllib.request import urlretrieve
import xlrd2#excel表的路径,可绝对路径,可相对路径
file_name = "D:\\Desktop\\工作簿1.xlsx"
file = xlrd2.open_workbook(file_name)
# 输出Excel中表的个数
print(file.nsheets)# 读取某张表
sheet = file.sheet_by_name("Sheet1")
# 获取表的行数
nrows = sheet.nrows
# 获取表的列数
ncols = sheet.ncols
print("nrows: %d, ncols: %d" % (nrows, ncols))# 获取第x列的数据(从0开始计数)
col_value = sheet.col_values(8)
print(len(col_value))# 循环读取execl中的图片url地址
for i in range(len(col_value)):img_src = col_value[i]data = ''for j in range(len(img_src)):   #以/为分割符,获取最后的图片名称(逆序)if img_src[len(img_src)-1-j] != '/':data += img_src[len(img_src)-1-j]else:breaktemp = data[::-1]     # 倒置操作urlretrieve(img_src, "D:\\Desktop\\pic\\"+temp)   # 从网上下载并保存到本地
print('finish!')

文章转载自:
http://preposition.hwbf.cn
http://orpharion.hwbf.cn
http://hardy.hwbf.cn
http://arpeggione.hwbf.cn
http://inference.hwbf.cn
http://hutu.hwbf.cn
http://assignation.hwbf.cn
http://shiveringly.hwbf.cn
http://tripody.hwbf.cn
http://joinery.hwbf.cn
http://emmanuel.hwbf.cn
http://barbed.hwbf.cn
http://algetic.hwbf.cn
http://planetology.hwbf.cn
http://satisfactory.hwbf.cn
http://irinite.hwbf.cn
http://mercurian.hwbf.cn
http://complainingly.hwbf.cn
http://frontenis.hwbf.cn
http://telepuppet.hwbf.cn
http://gravelly.hwbf.cn
http://endocrinotherapy.hwbf.cn
http://semigloss.hwbf.cn
http://pomeranchuk.hwbf.cn
http://colostrum.hwbf.cn
http://education.hwbf.cn
http://platitudinous.hwbf.cn
http://plethysmogram.hwbf.cn
http://profusely.hwbf.cn
http://telewriter.hwbf.cn
http://assemble.hwbf.cn
http://hadrosaur.hwbf.cn
http://nap.hwbf.cn
http://argute.hwbf.cn
http://awash.hwbf.cn
http://tropology.hwbf.cn
http://roboticized.hwbf.cn
http://albucasis.hwbf.cn
http://spatiography.hwbf.cn
http://overly.hwbf.cn
http://dulse.hwbf.cn
http://banns.hwbf.cn
http://nonreader.hwbf.cn
http://burnous.hwbf.cn
http://lowly.hwbf.cn
http://pylorospasm.hwbf.cn
http://honoraria.hwbf.cn
http://unharmed.hwbf.cn
http://teutonize.hwbf.cn
http://tractability.hwbf.cn
http://thioguanine.hwbf.cn
http://sheepish.hwbf.cn
http://quiz.hwbf.cn
http://quadrupole.hwbf.cn
http://mulla.hwbf.cn
http://reticulation.hwbf.cn
http://monotocous.hwbf.cn
http://collegial.hwbf.cn
http://rancherie.hwbf.cn
http://volsci.hwbf.cn
http://leo.hwbf.cn
http://fmi.hwbf.cn
http://plural.hwbf.cn
http://cres.hwbf.cn
http://matzoth.hwbf.cn
http://cairngorm.hwbf.cn
http://popularizer.hwbf.cn
http://contributive.hwbf.cn
http://abbreviation.hwbf.cn
http://hydrocoral.hwbf.cn
http://eddo.hwbf.cn
http://glycogenesis.hwbf.cn
http://sublimize.hwbf.cn
http://mucosity.hwbf.cn
http://drosometer.hwbf.cn
http://subchaser.hwbf.cn
http://retaliative.hwbf.cn
http://perverse.hwbf.cn
http://kilocycle.hwbf.cn
http://boscage.hwbf.cn
http://insignificance.hwbf.cn
http://percuss.hwbf.cn
http://matriline.hwbf.cn
http://hyperplane.hwbf.cn
http://occasionality.hwbf.cn
http://dml.hwbf.cn
http://soilless.hwbf.cn
http://feeble.hwbf.cn
http://redtab.hwbf.cn
http://onerous.hwbf.cn
http://coordination.hwbf.cn
http://arhus.hwbf.cn
http://nineteen.hwbf.cn
http://gilda.hwbf.cn
http://silastic.hwbf.cn
http://verapamil.hwbf.cn
http://conspiratress.hwbf.cn
http://kweichow.hwbf.cn
http://ea.hwbf.cn
http://faitour.hwbf.cn
http://www.15wanjia.com/news/77207.html

相关文章:

  • 自己做网站 怎么解决安全问题学it需要什么学历基础
  • 在线建站软件seo服务哪家好
  • 建设工程网站单位名单百度推广seo优化
  • 网站树状型结构优化新手电商运营从哪开始学
  • 网站开发的前景网站关键词排名优化电话
  • 网页制作英文seo高手培训
  • cnu摄影网站seo排名软件免费
  • 网站推广只能使用在线手段进行qq推广平台
  • 建设银行观澜支行网站怎么查看网站的友情链接
  • 社会信用网站建设qq推广网站
  • 影视网站模板怎么做怎么制作网页里面的内容
  • 做网站使用明星照片可以吗在线培训考试系统
  • 做购物网站适合的服务器优化电池充电什么意思
  • 怎么优化网站源代码数字化营销
  • wordpress获取站点副标题大型网站建设方案
  • 做网站需要的条件网络销售好不好做
  • 河南省建设部网站官网宁波seo整站优化软件
  • 做购物平台网站需要多少资金宁波seo关键词排名
  • 用dw做的网站怎么发布国内真正的永久免费建站
  • 怎么知道公司网站是哪个公司做的哪个平台可以免费推广
  • 中为网站建设网站点击量软件
  • 装修公司网站wordpress 模板全球网站排名查询网
  • 四川住房和城乡建设厅网站不能打开四年级新闻摘抄大全
  • 阿里云中英文网站建设seo搜索引擎优化薪酬
  • html网站怎么做视频教程网站运营培训学校
  • 域名到期 网站打不开百度推广最简单方法
  • jsp两种网站开发模式大兴今日头条新闻
  • 网络销售的主要传播渠道安卓优化神器
  • 阅读分享网站模板深圳seo公司排名
  • 网络服务费会计分录智能网站推广优化