Sheldonliu 大佬有话说 :
用 Python 写了一个搭配 AutoRclone 和 gclone 的小脚本
自学了 Python 几天,一直想亲自动手实践一番,于是写了一个与字符串提取有关的小脚本,与 AutoRclone 或 gclone 搭配食用,提取 accounts 目录下 json 文件的文件名和邮箱,便于查询和添加到 Google groups
使用前请先安装 Python3
import re
import sys
import os,glob
# 定义目录:目录下有多个文件需要处理,为 accounts 目录的路径,例如: path = ‘D://AutoRclone//accounts’
path = ‘path//to//your//accounts’
# 定义输出文件,路径可自定义,例如 fout = open("D://AutoRclone//accounts//res.txt", ‘w’)
fout = open("res.txt", ‘w’)
os.chdir(path)
fout.write("用户名和邮箱(便于查询)n")
for filename in os.listdir() :
fs = open(filename, ‘r+’)
fout.write("文件名:" + filename + ‘n’)
for line in fs.readlines():
mylist_1 = line.split(":")
if mylist_1 == ""client_email"" :
mylist_2 = mylist_1.split(""")
fout.write(mylist_2 + ‘n’)
fout.write("nn")
fout.write("邮箱(便于添加到 Google group)n")
for filename in os.listdir() :
fs = open(filename, ‘r+’)
for line in fs.readlines():
mylist_1 = line.split(":")
if mylist_1 == ""client_email"" :
mylist_2 = mylist_1.split(""")
fout.write(mylist_2 + ‘n’)
fout.write(‘n’)
fout.close()
项目地址:https://github.com/Sheldonsix/A-python-script-of-AutoRclone-or-gclone
参考教程:https://blog.csdn.net/lavorange/article/details/41647091
yidaomm 大佬有话说 :
此贴必火,:lol
b66667777 大佬有话说 :
感谢分享
hjvn2211445 大佬有话说 :
本帖最后由 hjvn2211445 于 2020-4-6 16:54 编辑
也可以插件网页上提取邮箱,
插件https://chrome.google.com/webstore/detail/email-extractor/fgcoaakamhopmbbbllmpocacgkhjhmbp?hl=zh-CN
/**
*
Rclone高级玩法–利用服务账号突破日流量750G限制 – Jialezi `s blog http://blog.jialezi.net/?post=153
*
* */
Sheldonliu 大佬有话说 :
hjvn2211445 大佬有话说 : 2020-4-6 12:39
也可以插件网页上提取邮箱,
插件https://chrome.google.com/webstore/detail/email-extractor/fgcoaakamho …
嘿嘿感谢分享,那个插件更方便,不过提取不了文件名,就不清楚哪个邮箱对应哪个文件