cloudwindy / yander Goto Github PK
View Code? Open in Web Editor NEWYande.re Downloader
License: GNU General Public License v3.0
Yande.re Downloader
License: GNU General Public License v3.0
import re, urllib.parse
'''约234行'''
def _path(self, pic):
'''使用filter过滤文件名'''
data = pic['file_url']
pattern = r'[^/]+$'
original = re.search(pattern, data)
unoriginal = original.group()[:-4]
'''将名字里的unicode进行转换'''
filename = urllib.parse.unquote(unoriginal)
'''根据图片元数据和保存位置生成对应路径'''
return join(self.save_dir, '%s.%s' % (filename, pic['file_ext']))
下载后保存到本地的图片名
更改前:1110202.jpg
更改后:yande.re 1110202 bikini hololive sakamata_chloe swimsuits tagme.jpg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.