We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from cookiespool.db import RedisClient
conn = RedisClient('accounts', 'weibo')
def set(username, password): result = conn.set(username, password) if result: print('账号', username, '密码', password) print('录入成功') else: #如果插入失败,说明username已存在。删除重新插入 conn.delete(username) set(username,password)
def scan(sep='----'): print('正在读取密码本') with open('account_pwd.txt') as f: accounts = f.readlines() for account in accounts: username, password = account.split(sep) #去掉密码结尾的换行符 password = password.strip() set(username, password)
if name == 'main': scan()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
from cookiespool.db import RedisClient
conn = RedisClient('accounts', 'weibo')
def set(username, password):
result = conn.set(username, password)
if result:
print('账号', username, '密码', password)
print('录入成功')
else:
#如果插入失败,说明username已存在。删除重新插入
conn.delete(username)
set(username,password)
def scan(sep='----'):
print('正在读取密码本')
with open('account_pwd.txt') as f:
accounts = f.readlines()
for account in accounts:
username, password = account.split(sep)
#去掉密码结尾的换行符
password = password.strip()
set(username, password)
if name == 'main':
scan()
The text was updated successfully, but these errors were encountered: