Python爬取百度文库中的PPT(2021.3.16)

1、需求分析

        大家都知道,百度文库中的资源主要以Word文档和PPT为主,而Word文档主要由文本和公式组成,而PPT中的文本并不多,重点是图片和绚丽的色彩风格。
        有的网友在百度文库中找到了自己所需的文档,可能出于学习或研究的目的想要下载到本地,面对一些VIP付费资源可能会束手无策。比如尝试过下载百度文库里的PPT课件之类的资源,但由于PPT页数太长,百度文库只限制前多少页能够被预览,而如果想要查看后面的页数则需要登录百度账号,然后可能会提示VIP或者付费才能下载。
        比如学生党需要下载百度文库中107页物理学与现代信息技术——物理学薛其坤院士课件,但看到页面会提示让登录百度账号,可能有的网友用过冰点文库下载器,但这个下载器可能下载内容不全(好像最多支持仅下载前50页)。
在这里插入图片描述
        如果不登录百度账号,在浏览器里下拉页面到底部会看到购买全文需要35元RMB,对于学生党来说好心疼啊,赶上自己一个月的手机费了。(其实可以几个同学一起购买后共同使用也是不错的选择哦!)
在这里插入图片描述
        无奈之下,迫不得已还是需要登录百度账号,毕竟百度系列的服务(百度搜索、百度地图、百度图片、百度文库、百度网盘等)还是希望用户登录百度账号的,以便为用户提供优质的个性化服务。
在这里插入图片描述
        登录百度账号后会发现只要不断点击页面底部的继续阅读便可阅读PPT的全部内容(当然前提是电脑联网且已登录百度账号),好不容易翻到了PPT的最后一页(107页),终于可以查看全部页面了,但有的同学觉得浏览器里在线看还是不如本地离线看来得实在,还是想要下载,但苦于页面下方只有购买文档和VIP8购买按钮,自己不想手动一张一张截图或者拖拽下载啊!(主要是懒)这时心里默想一下:要是页面有个免费下载按钮该多好啊!
在这里插入图片描述

2、网站分析

        在百度文库中找到物理学与现代信息技术——物理学薛其坤院士课件,首先需要知道在百度文库中PPT课件中将鼠标放在PPT第一页上进行向右上角拖拽后,会看到浏览器打开一个新的地址,即PPT第一页对应图片的链接
在这里插入图片描述

2.1 寻找PPT各页面对应图片的url

        首页—第1页PPT的图片界面
在这里插入图片描述
        中间页----第50页PPT的图片界面
在这里插入图片描述
        尾页—第107页PPT的图片界面
在这里插入图片描述
        首页、中间页、尾页的PPT对应图片的url地址如下所示,其实本质上url中pn相当于pagenumber页号,pn=1表示第1页PPT,pn=50表示第50页PPT,pn=107表示第107页PPT之后的png和jpg代表两种图片格式,通过对比几个连续的PPT页面的url发现png或jpg的号码是连续的,但好像无法根据页面号直接得出png=?或者jpg=?,何必浪费时间去找不一定存在的规律呢?因此干脆直接获取所有页面的url不就得了嘛!
在这里插入图片描述

https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=1&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=0-242&jpg=0-69310
https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=50&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3475846-3566915&jpg=6744219-6880520
https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=107&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=10653739-&jpg=15144062-

        那么问题来了,107个PPT图片对应的url该去何处寻找呢?不要慌,浏览器里遇到问题不会就按F12或者打开设置里的开发工具,工具里默认选择的是Sources,这里先点击Elements后用鼠标点击左侧的箭头按钮,然后移动到第3页的PPT上进行选中,
在这里插入图片描述
        选中后右侧的Elements下方的内容会定位到div里的img src=处,这时只需双击该url即可选中右键复制得到第3张PPT对应的图片url

https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=3&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2946-5648&jpg=116903-295339

在这里插入图片描述
在这里插入图片描述
        这下心里就爽朗许多了,从以下两图中可以看到每个页面都有其对应的div,div里的img src=放的是该页面对应图片的url地址,需要浏览完所有的页面
在这里插入图片描述
在这里插入图片描述

2.2 复制PPT所有页面图片的url到result.txt中。

        然后切换到Sources下后,将下图中的div部分page-1page-107复制到result.txt中。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
        div内容如下所示(因为已经浏览过所有页面,其实div内容就包含在上图647cb0ce6d85ec3a87c24028915f804d2a168741.html文件中,这个文件可用记事本打开也能找到如下div内容)

<div class="page-1 ppt-page-item  batch-50-1" id="pageNo-1">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=1&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=0-242&jpg=0-69310" alt="">
                        </div>
                    </div>
                    <div class="page-2 ppt-page-item  batch-50-1" id="pageNo-2">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=2&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=243-2945&jpg=69311-116902" alt="">
                        </div>
                    </div>
                    <div class="page-3 ppt-page-item  batch-50-1" id="pageNo-3">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=3&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2946-5648&jpg=116903-295339" alt="">
                        </div>
                    </div>
                    <div class="page-4 ppt-page-item hide batch-50-1" id="pageNo-4">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=4&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=5649-189309&jpg=295340-467840">
                        </div>
                    </div>
                    <div class="page-5 ppt-page-item hide batch-50-1" id="pageNo-5">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=5&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=189310-190599&jpg=467841-625562">
                        </div>
                    </div>
                    <div class="page-6 ppt-page-item hide batch-50-1" id="pageNo-6">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=6&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=190600-328524&jpg=625563-825200">
                        </div>
                    </div>
                    <div class="page-7 ppt-page-item hide batch-50-1" id="pageNo-7">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=7&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=328525-422920&jpg=825201-1012782">
                        </div>
                    </div>
                    <div class="page-8 ppt-page-item hide batch-50-1" id="pageNo-8">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=8&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=422921-472613&jpg=1012783-1153177">
                        </div>
                    </div>
                    <div class="page-9 ppt-page-item hide batch-50-1" id="pageNo-9">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=9&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=472614-552388&jpg=1153178-1316877">
                        </div>
                    </div>
                    <div class="page-10 ppt-page-item hide batch-50-1" id="pageNo-10">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=10&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=552389-656153&jpg=1316878-1489375">
                        </div>
                    </div>
                    <div class="page-11 ppt-page-item hide batch-50-1" id="pageNo-11">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=11&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=656154-732690&jpg=1489376-1655942">
                        </div>
                    </div>
                    <div class="page-12 ppt-page-item hide batch-50-1" id="pageNo-12">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=12&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=732691-734144&jpg=1655943-1837209">
                        </div>
                    </div>
                    <div class="page-13 ppt-page-item hide batch-50-1" id="pageNo-13">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=13&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=734145-754403&jpg=1837210-1901105">
                        </div>
                    </div>
                    <div class="page-14 ppt-page-item hide batch-50-1" id="pageNo-14">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=14&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=754404-754646&jpg=1901106-2054797">
                        </div>
                    </div>
                    <div class="page-15 ppt-page-item hide batch-50-1" id="pageNo-15">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=15&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=754647-760852&jpg=2054798-2163289">
                        </div>
                    </div>
                    <div class="page-16 ppt-page-item hide batch-50-1" id="pageNo-16">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=16&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=760853-762428&jpg=2163290-2257050">
                        </div>
                    </div>
                    <div class="page-17 ppt-page-item hide batch-50-1" id="pageNo-17">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=17&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=762429-768038&jpg=2257051-2316567">
                        </div>
                    </div>
                    <div class="page-18 ppt-page-item hide batch-50-1" id="pageNo-18">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=18&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=768039-814147&jpg=2316568-2424920">
                        </div>
                    </div>
                    <div class="page-19 ppt-page-item hide batch-50-1" id="pageNo-19">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=19&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=814148-845189&jpg=2424921-2534583">
                        </div>
                    </div>
                    <div class="page-20 ppt-page-item hide batch-50-1" id="pageNo-20">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=20&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=845190-846744&jpg=2534584-2641420">
                        </div>
                    </div>
                    <div class="page-21 ppt-page-item hide batch-50-1" id="pageNo-21">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=21&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=846745-973042&jpg=2641421-2796048">
                        </div>
                    </div>
                    <div class="page-22 ppt-page-item hide batch-50-1" id="pageNo-22">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=22&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=973043-1039923&jpg=2796049-2951689">
                        </div>
                    </div>
                    <div class="page-23 ppt-page-item hide batch-50-1" id="pageNo-23">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=23&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1039924-1048065&jpg=2951690-3099245">
                        </div>
                    </div>
                    <div class="page-24 ppt-page-item hide batch-50-1" id="pageNo-24">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=24&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1048066-1062315&jpg=3099246-3200501">
                        </div>
                    </div>
                    <div class="page-25 ppt-page-item hide batch-50-1" id="pageNo-25">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=25&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1062316-1129767&jpg=3200502-3351948">
                        </div>
                    </div>
                    <div class="page-26 ppt-page-item hide batch-50-1" id="pageNo-26">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=26&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1129768-1387059&jpg=3351949-3607691">
                        </div>
                    </div>
                    <div class="page-27 ppt-page-item hide batch-50-1" id="pageNo-27">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=27&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1387060-1600254&jpg=3607692-3761426">
                        </div>
                    </div>
                    <div class="page-28 ppt-page-item hide batch-50-1" id="pageNo-28">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=28&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1600255-1740230&jpg=3761427-3991502">
                        </div>
                    </div>
                    <div class="page-29 ppt-page-item hide batch-50-1" id="pageNo-29">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=29&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1740231-1801309&jpg=3991503-4128048">
                        </div>
                    </div>
                    <div class="page-30 ppt-page-item hide batch-50-1" id="pageNo-30">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=30&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1801310-1920973&jpg=4128049-4240091">
                        </div>
                    </div>
                    <div class="page-31 ppt-page-item hide batch-50-1" id="pageNo-31">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=31&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=1920974-2108296&jpg=4240092-4417063">
                        </div>
                    </div>
                    <div class="page-32 ppt-page-item hide batch-50-1" id="pageNo-32">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=32&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2108297-2148356&jpg=4417064-4550214">
                        </div>
                    </div>
                    <div class="page-33 ppt-page-item hide batch-50-1" id="pageNo-33">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=33&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2148357-2247971&jpg=4550215-4737190">
                        </div>
                    </div>
                    <div class="page-34 ppt-page-item hide batch-50-1" id="pageNo-34">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=34&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2247972-2248214&jpg=4737191-4776944">
                        </div>
                    </div>
                    <div class="page-35 ppt-page-item hide batch-50-1" id="pageNo-35">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=35&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2248215-2248457&jpg=4776945-4846484">
                        </div>
                    </div>
                    <div class="page-36 ppt-page-item hide batch-50-1" id="pageNo-36">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=36&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2248458-2331162&jpg=4846485-4983161">
                        </div>
                    </div>
                    <div class="page-37 ppt-page-item hide batch-50-1" id="pageNo-37">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=37&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2331163-2333865&jpg=4983162-5038651">
                        </div>
                    </div>
                    <div class="page-38 ppt-page-item hide batch-50-1" id="pageNo-38">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=38&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2333866-2517753&jpg=5038652-5254195">
                        </div>
                    </div>
                    <div class="page-39 ppt-page-item hide batch-50-1" id="pageNo-39">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=39&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2517754-2698807&jpg=5254196-5444794">
                        </div>
                    </div>
                    <div class="page-40 ppt-page-item hide batch-50-1" id="pageNo-40">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=40&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2698808-2802116&jpg=5444795-5632090">
                        </div>
                    </div>
                    <div class="page-41 ppt-page-item hide batch-50-1" id="pageNo-41">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=41&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2802117-2804819&jpg=5632091-5708089">
                        </div>
                    </div>
                    <div class="page-42 ppt-page-item hide batch-50-1" id="pageNo-42">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=42&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2804820-2877089&jpg=5708090-5866990">
                        </div>
                    </div>
                    <div class="page-43 ppt-page-item hide batch-50-1" id="pageNo-43">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=43&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2877090-2885667&jpg=5866991-6034860">
                        </div>
                    </div>
                    <div class="page-44 ppt-page-item hide batch-50-1" id="pageNo-44">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=44&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=2885668-3073399&jpg=6034861-6267118">
                        </div>
                    </div>
                    <div class="page-45 ppt-page-item hide batch-50-1" id="pageNo-45">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=45&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3073400-3074813&jpg=6267119-6357272">
                        </div>
                    </div>
                    <div class="page-46 ppt-page-item hide batch-50-1" id="pageNo-46">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=46&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3074814-3164969&jpg=6357273-6456557">
                        </div>
                    </div>
                    <div class="page-47 ppt-page-item hide batch-50-1" id="pageNo-47">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=47&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3164970-3247675&jpg=6456558-6565721">
                        </div>
                    </div>
                    <div class="page-48 ppt-page-item hide batch-50-1" id="pageNo-48">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=48&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3247676-3315706&jpg=6565722-6616757">
                        </div>
                    </div>
                    <div class="page-49 ppt-page-item hide batch-50-1" id="pageNo-49">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=49&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3315707-3475845&jpg=6616758-6744218">
                        </div>
                    </div>
                    <div class="page-50 ppt-page-item hide batch-50-1" id="pageNo-50">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=50&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3475846-3566915&jpg=6744219-6880520">
                        </div>
                    </div>
                    <div class="page-51 ppt-page-item hide batch-50-2" id="pageNo-51">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=51&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3566916-3705010&jpg=6880521-7067045">
                        </div>
                    </div>
                    <div class="page-52 ppt-page-item hide batch-50-2" id="pageNo-52">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=52&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3705011-3758824&jpg=7067046-7132939">
                        </div>
                    </div>
                    <div class="page-53 ppt-page-item hide batch-50-2" id="pageNo-53">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=53&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3758825-3761527&jpg=7132940-7260569">
                        </div>
                    </div>
                    <div class="page-54 ppt-page-item hide batch-50-2" id="pageNo-54">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=54&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3761528-3861107&jpg=7260570-7378297">
                        </div>
                    </div>
                    <div class="page-55 ppt-page-item hide batch-50-2" id="pageNo-55">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=55&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3861108-3862969&jpg=7378298-7502073">
                        </div>
                    </div>
                    <div class="page-56 ppt-page-item hide batch-50-2" id="pageNo-56">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=56&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3862970-3983850&jpg=7502074-7694548">
                        </div>
                    </div>
                    <div class="page-57 ppt-page-item hide batch-50-2" id="pageNo-57">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=57&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=3983851-4033058&jpg=7694549-7817253">
                        </div>
                    </div>
                    <div class="page-58 ppt-page-item hide batch-50-2" id="pageNo-58">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=58&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4033059-4087319&jpg=7817254-7966204">
                        </div>
                    </div>
                    <div class="page-59 ppt-page-item hide batch-50-2" id="pageNo-59">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=59&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4087320-4134381&jpg=7966205-8114562">
                        </div>
                    </div>
                    <div class="page-60 ppt-page-item hide batch-50-2" id="pageNo-60">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=60&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4134382-4202412&jpg=8114563-8196671">
                        </div>
                    </div>
                    <div class="page-61 ppt-page-item hide batch-50-2" id="pageNo-61">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=61&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4202413-4269928&jpg=8196672-8370915">
                        </div>
                    </div>
                    <div class="page-62 ppt-page-item hide batch-50-2" id="pageNo-62">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=62&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4269929-4312144&jpg=8370916-8475436">
                        </div>
                    </div>
                    <div class="page-63 ppt-page-item hide batch-50-2" id="pageNo-63">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=63&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4312145-4627060&jpg=8475437-8691759">
                        </div>
                    </div>
                    <div class="page-64 ppt-page-item hide batch-50-2" id="pageNo-64">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=64&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4627061-4726235&jpg=8691760-8813483">
                        </div>
                    </div>
                    <div class="page-65 ppt-page-item hide batch-50-2" id="pageNo-65">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=65&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4726236-4864934&jpg=8813484-8951478">
                        </div>
                    </div>
                    <div class="page-66 ppt-page-item hide batch-50-2" id="pageNo-66">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=66&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4864935-4949055&jpg=8951479-9099841">
                        </div>
                    </div>
                    <div class="page-67 ppt-page-item hide batch-50-2" id="pageNo-67">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=67&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=4949056-5103099&jpg=9099842-9287308">
                        </div>
                    </div>
                    <div class="page-68 ppt-page-item hide batch-50-2" id="pageNo-68">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=68&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=5103100-5303225&jpg=9287309-9476037">
                        </div>
                    </div>
                    <div class="page-69 ppt-page-item hide batch-50-2" id="pageNo-69">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=69&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=5303226-5610314&jpg=9476038-9653282">
                        </div>
                    </div>
                    <div class="page-70 ppt-page-item hide batch-50-2" id="pageNo-70">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=70&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=5610315-5758577&jpg=9653283-9861116">
                        </div>
                    </div>
                    <div class="page-71 ppt-page-item hide batch-50-2" id="pageNo-71">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=71&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=5758578-5868806&jpg=9861117-10023535">
                        </div>
                    </div>
                    <div class="page-72 ppt-page-item hide batch-50-2" id="pageNo-72">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=72&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=5868807-6084251&jpg=10023536-10172382">
                        </div>
                    </div>
                    <div class="page-73 ppt-page-item hide batch-50-2" id="pageNo-73">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=73&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=6084252-6175776&jpg=10172383-10291887">
                        </div>
                    </div>
                    <div class="page-74 ppt-page-item hide batch-50-2" id="pageNo-74">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=74&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=6175777-6214146&jpg=10291888-10372871">
                        </div>
                    </div>
                    <div class="page-75 ppt-page-item hide batch-50-2" id="pageNo-75">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=75&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=6214147-6442271&jpg=10372872-10741168">
                        </div>
                    </div>
                    <div class="page-76 ppt-page-item hide batch-50-2" id="pageNo-76">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=76&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=6442272-6526467&jpg=10741169-10876748">
                        </div>
                    </div>
                    <div class="page-77 ppt-page-item hide batch-50-2" id="pageNo-77">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=77&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=6526468-6529170&jpg=10876749-11044009">
                        </div>
                    </div>
                    <div class="page-78 ppt-page-item hide batch-50-2" id="pageNo-78">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=78&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=6529171-6705753&jpg=11044010-11238314">
                        </div>
                    </div>
                    <div class="page-79 ppt-page-item hide batch-50-2" id="pageNo-79">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=79&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=6705754-7571941&jpg=11238315-11445589">
                        </div>
                    </div>
                    <div class="page-80 ppt-page-item hide batch-50-2" id="pageNo-80">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=80&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=7571942-7689106&jpg=11445590-11559668">
                        </div>
                    </div>
                    <div class="page-81 ppt-page-item hide batch-50-2" id="pageNo-81">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=81&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=7689107-8501115&jpg=11559669-11714500">
                        </div>
                    </div>
                    <div class="page-82 ppt-page-item hide batch-50-2" id="pageNo-82">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=82&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8501116-8556881&jpg=11714501-11871502">
                        </div>
                    </div>
                    <div class="page-83 ppt-page-item hide batch-50-2" id="pageNo-83">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=83&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8556882-8744820&jpg=11871503-12097563">
                        </div>
                    </div>
                    <div class="page-84 ppt-page-item hide batch-50-2" id="pageNo-84">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=84&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8744821-8771198&jpg=12097564-12279818">
                        </div>
                    </div>
                    <div class="page-85 ppt-page-item hide batch-50-2" id="pageNo-85">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=85&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8771199-8773515&jpg=12279819-12361085">
                        </div>
                    </div>
                    <div class="page-86 ppt-page-item hide batch-50-2" id="pageNo-86">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=86&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8773516-8853591&jpg=12361086-12497023">
                        </div>
                    </div>
                    <div class="page-87 ppt-page-item hide batch-50-2" id="pageNo-87">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=87&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8853592-8853834&jpg=12497024-12529758">
                        </div>
                    </div>
                    <div class="page-88 ppt-page-item hide batch-50-2" id="pageNo-88">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=88&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8853835-8856537&jpg=12529759-12670542">
                        </div>
                    </div>
                    <div class="page-89 ppt-page-item hide batch-50-2" id="pageNo-89">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=89&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8856538-8859240&jpg=12670543-12699011">
                        </div>
                    </div>
                    <div class="page-90 ppt-page-item hide batch-50-2" id="pageNo-90">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=90&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8859241-8861943&jpg=12699012-12727480">
                        </div>
                    </div>
                    <div class="page-91 ppt-page-item hide batch-50-2" id="pageNo-91">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=91&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8861944-8898675&jpg=12727481-12849521">
                        </div>
                    </div>
                    <div class="page-92 ppt-page-item hide batch-50-2" id="pageNo-92">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=92&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=8898676-9062239&jpg=12849522-13089931">
                        </div>
                    </div>
                    <div class="page-93 ppt-page-item hide batch-50-2" id="pageNo-93">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=93&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=9062240-9352112&jpg=13089932-13277980">
                        </div>
                    </div>
                    <div class="page-94 ppt-page-item hide batch-50-2" id="pageNo-94">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=94&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=9352113-9429037&jpg=13277981-13400006">
                        </div>
                    </div>
                    <div class="page-95 ppt-page-item hide batch-50-2" id="pageNo-95">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=95&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=9429038-9431740&jpg=13400007-13511378">
                        </div>
                    </div>
                    <div class="page-96 ppt-page-item hide batch-50-2" id="pageNo-96">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=96&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=9431741-9450284&jpg=13511379-13640945">
                        </div>
                    </div>
                    <div class="page-97 ppt-page-item hide batch-50-2" id="pageNo-97">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=97&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=9450285-9600312&jpg=13640946-13845936">
                        </div>
                    </div>
                    <div class="page-98 ppt-page-item hide batch-50-2" id="pageNo-98">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=98&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=9600313-9745708&jpg=13845937-14003062">
                        </div>
                    </div>
                    <div class="page-99 ppt-page-item hide batch-50-2" id="pageNo-99">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=99&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=9745709-9964986&jpg=14003063-14149088">
                        </div>
                    </div>
                    <div class="page-100 ppt-page-item hide batch-50-2" id="pageNo-100">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=100&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=9964987-10036973&jpg=14149089-14269584">
                        </div>
                    </div>
                    <div class="page-101 ppt-page-item hide batch-50-3" id="pageNo-101">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=101&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=10036974-10173733&jpg=14269585-14408073">
                        </div>
                    </div>
                    <div class="page-102 ppt-page-item hide batch-50-3" id="pageNo-102">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=102&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=10173734-10173976&jpg=14408074-14490073">
                        </div>
                    </div>
                    <div class="page-103 ppt-page-item hide batch-50-3" id="pageNo-103">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=103&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=10173977-10270108&jpg=14490074-14602385">
                        </div>
                    </div>
                    <div class="page-104 ppt-page-item hide batch-50-3" id="pageNo-104">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=104&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=10270109-10376395&jpg=14602386-14718448">
                        </div>
                    </div>
                    <div class="page-105 ppt-page-item hide batch-50-3" id="pageNo-105">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=105&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=10376396-10396446&jpg=14718449-14888318">
                        </div>
                    </div>
                    <div class="page-106 ppt-page-item hide batch-50-3" id="pageNo-106">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=106&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=10396447-10653738&jpg=14888319-15144061">
                        </div>
                    </div>
                    <div class="page-107 ppt-page-item hide batch-50-3" id="pageNo-107">
                        <div class="ppt-image-wrap ppt-4-3">
                            <img data-src="https://wkretype.bdimg.com/retype/zoom/04f08a71f90f76c661371aa2?pn=107&o=jpg_6&md5sum=517b429bd358c9b21717c02a246bd97c&sign=701d2668bb&png=10653739-&jpg=15144062-">
                        </div>
                    </div>

3、Python代码批量下载PPT所有页面图片

        通过上述分析,已经获得了百度文库所要下载PPT所有页面(1-107)对应图片的url下载链接,都被保存到了result.txt中,现在可以写Python代码批量下载PPT各页面图片到指定文件夹并生成word文档喽!

import urllib.request
import docx
#创建内存中的word文档对象
from docx.shared import Pt
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT

def download_img(img_url,imgname):
    request = urllib.request.Request(img_url)
    try:
        response = urllib.request.urlopen(request)
        img_name = imgname+'.jpg'
        filename = "D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\PPTimgpath1\\" + img_name
        if (response.getcode() == 200):
            with open(filename, "wb") as f:
                f.write(response.read()) # 将内容写入图片
            return filename
    except:
        return "failed"


docfile = docx.Document()#要写入的word文档
headers ={'Connection': 'close'}
txtfilename = "E:\\result.txt" #读取html中带有div片段和img src的txt
txtfopen = open(txtfilename, 'r',encoding='UTF-8')
lines = txtfopen.readlines()
i=1
for line in lines:
    if((i+2)%5==0):# 3、5、8行依次代表第1、2、3张PPT的内容
        linestring = line.strip('\n')
        imgurl = linestring[linestring.find('src="')+5:linestring.find('" alt=""')].replace('"','') #第i张PPT的url下载链接
        img_name = str((i+2)/5)
        filename = "D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\PPTimgpath1\\" + img_name+'.jpg'
        download_img(imgurl, img_name)
        paragraph = docfile.add_paragraph()  # 图片居中设置
        paragraph.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
        run = paragraph.add_run("")
        run.add_picture(filename)
        print((i+2)/5, imgurl)#去除换行符
    i=i+1
txtfopen.close()
docfile.save("D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\DownloadPPT.docx") #保存

4、运行结果展示

4.1 利用所有PPT图片自动生成word文档

在这里插入图片描述
        代码直接运行后,PPT中1-107页所有图片都被保存在了PPTimgpath1文件夹下,同时生成了DownloadPPT.docx文档。
在这里插入图片描述
在这里插入图片描述
        打开DownloadPPT.docx文档后发现PPT1-107页图片插入word后大小并不自适应
在这里插入图片描述
        于是打开下载的PPT图片文件夹,通过右键查看图片属性,才发现原来图片像素为1080像素 x 810像素,这个着实有点大啊!
在这里插入图片描述
        当然如果想要改动图片大小后自动保存到Word文档,可参考如下代码:

import docx
#创建内存中的word文档对象
from docx.shared import Pt
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
import os.path
from PIL import Image


filename = os.listdir("D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\PPTimgpath1\\")
size_m = 360
size_n = 270
docfile = docx.Document()#要写入的word文档
headers ={'Connection': 'close'}
i=1
for img in filename:
    image = Image.open("D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\PPTimgpath1\\" + img)
    image_size = image.resize((size_m, size_n), Image.ANTIALIAS)
    image_size.save("D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\NewPPTimgpath1\\" + img)
    paragraph = docfile.add_paragraph()  # 图片居中设置
    paragraph.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
    run = paragraph.add_run("")
    run.add_picture("D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\NewPPTimgpath1\\" + img)
    print(i,"D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\NewPPTimgpath1\\" + img)
    i = i + 1
docfile.save("D:\\Program Files (x86)\\PyCharm Community Edition 2020.1.1\\PaQukemu4tiku\\folder\\ChangeSizePPT.doc") #保存

        运行后再NewPPTimagpath1文件夹下生成了缩小为360像素 x 270像素的PPT图片,同时生成了ChangeSizePPT.docx文档,分别如下图所示。
在这里插入图片描述
在这里插入图片描述
        看得出来,图片未缩小前自动生成的Word文档DownloadPPT.docx比缩小后自动生成的Word文档ChangeSizePPT.docx的存储空间所占大小小了许多,因为图片压缩大小意味着失真,局部模糊。
在这里插入图片描述
在这里插入图片描述

4.2 利用PPT图片手动生成word

        如果确实不知道该如何调整大小,而又想保证原始下载PPT所有页面图片的清晰度可直接新建Word文档(命名为物理学与现代信息技术——物理学薛其坤院士.docx)后,点击上方菜单栏的插入,选择图片,在PPT页面图片文件夹下选中所有图片即可完成。
在这里插入图片描述
在这里插入图片描述
        PPT所有页面图片插入完成后word文档如上图所示,这时只需调整段落行距为单倍行距就能正常显示了。
在这里插入图片描述
        这时可以看到整个word文档里面PPT所有图片都能自适应大小,并且图片失真程度最小,整个任务完成。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

注:本博客内容尊重知识创作,旨在学习交流使用,切勿用于非法商业用途!!!

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 创作都市 设计师:CSDN官方博客 返回首页