GithubHelp home page GithubHelp logo

sheldonsix / a-python-script-of-autorclone-or-gclone Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 17.0 7 KB

提取 accounts 里面 json 文件的文件名和邮箱,便于查询和添加到 Google groups

Python 83.31% Shell 16.69%

a-python-script-of-autorclone-or-gclone's Introduction

2022 年 5 月 17 日 更新

onekey-print-email-from-google-sa-json.sh 为提取邮箱的命令,十分方便,推荐使用。


A python script of AutoRclone or gclone

提取 accounts 里面 json 文件的文件名和邮箱,便于查询和添加到 Google groups

  1. 请先安装 Python3
  2. 然后根据自己的文件路径修改'path = '和'fout = '
  3. 最后直接运行即可

参考教程:https://blog.csdn.net/lavorange/article/details/41647091

a-python-script-of-autorclone-or-gclone's People

Contributors

sheldonsix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

a-python-script-of-autorclone-or-gclone's Issues

代码有问题,执行报错

你好,在Centos代码执行会报错。不会python,请问是哪里问题
[root@centos AutoRclone]# python 提取文件名邮箱.py
Traceback (most recent call last):
File "提取文件名邮箱.py", line 15, in
for filename in os.listdir() :
TypeError: listdir() takes exactly 1 argument (0 given)

文件路径我是这样写的:

#定义目录:目录下有多个文件需要处理,为 accounts 目录的路径,例如: path = 'D://AutoRclone//accounts'
path = '//root//AutoRclone//accounts'
#定义输出文件,路径可自定义,例如 fout = open("D://AutoRclone//accounts//res.txt", 'w')
fout = open("res.txt", 'w')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.