当前位置:网站首页>One click filtering to select Baidu online disk files
One click filtering to select Baidu online disk files
2022-07-04 05:37:00 【a10615】
background
Today, the photo gallery sent me through Baidu online disk 266 A picture , Let me choose 20 Zhang Yinshu . But the other party put .CR2 and .JPG Both formats have been sent , In fact, I just need to .JPG Download it , Then choose . But I need to choose from 133 Zhang , This kind of quantity is large 、 Repetitive work , It's quite a test of endurance . As a programmer , We must find a lazy way to solve it , without doubt , Just from the front (Ctrl+Shift+I, Browser developer tools ) To solve
Find the differences between the two files
Corresponding element layout :
<dd class="g-clearfix AuPKyz open-enable" _position="132" _cmd_installed="1" _installed="1">
<span node-type="EOGexf" class="EOGexf"></span>
<div class="JS-fileicon fileicon-small-pic"></div>
<div class="file-name" style="width:60%">
<div class="text">
<a href="javascript:void(0);" class="filename" title="_P5A1453.JPG">_P5A1453.JPG</a>
</div>
...
</div>
</dd>
<dd class="g-clearfix AuPKyz" _position="133" _cmd_installed="1" _installed="1">
<span node-type="EOGexf" class="EOGexf"></span>
<div class="JS-fileicon default-small"></div>
<div class="file-name" style="width:60%">
<div class="text">
<a href="javascript:void(0);" class="filename" title="_P5A1397.CR2">_P5A1397.CR2</a>
</div>
...
</div>
</dd>
The difference is <dd>
Inside the label class in . So as long as such a fishing ,133 All the documents are fished out :
document.getElementsByClassName('g-clearfix AuPKyz open-enable')
Execute click event
The rest , Is to perform click operations :
document.getElementsByClassName('g-clearfix AuPKyz open-enable').forEach(item => item.firstElementChild.click())
Be careful :
item.click()
, It is a single choice function , And multiple choice , Its child elements must be used<span>
边栏推荐
- 远程桌面客户端 RDP
- 19. Framebuffer application programming
- Programming example of stm32f1 and stm32subeide -74hc595 drives 4-bit 7-segment nixie tube
- 模拟小根堆
- 简易零钱通
- June 2022 summary
- [matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (cosine roll off forming pulse)
- Basic concept of bus
- [matlab] matlab simulates digital bandpass transmission system ask, PSK, FSK system
- VB.net 调用FFmpeg简单处理视频(类库——6)
猜你喜欢
Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
KMP匹配字符串
(4) Canal multi instance use
Programmers don't talk about morality, and use multithreading for Heisi's girlfriend
Simulink与Arduino串口通信
Simulated small root pile
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
2022 R2 mobile pressure vessel filling retraining question bank and answers
云原生架构实战案例及优化解决方案
Unity is connected to the weather system
随机推荐
Graduation design of small programs -- small programs of food and recipes
left_and_right_net可解释性设计
[matlab] general function of communication signal modulation Fourier transform
模拟小根堆
Solar insect killing system based on single chip microcomputer
Letter meaning and parameter abbreviation of optical module Daquan
[high concurrency, high performance and high availability of massive data MySQL practice-7] - memory data drop disk
Void convolution, deformable convolution, deformable ROI pooling
With the advent of the IP era, how can E-sports hotels take advantage of the "east wind" of games?
总线的基本概念
Flutter calls Gaode map app to realize location search, route planning and reverse geocoding
Etcd database source code analysis - initialization overview
Flink1.13 basic SQL syntax (II) join operation
Li Kou's 300th weekly match
What is MQ?
How to use postman to realize simple interface Association [add, delete, modify and query]
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
[matlab] matlab simulation modulation system - VSB system
Nodejs learning document
XII Golang others