Skip to content

uselibrary/KeepMyGoogleVoice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeepMyGoogleVoice

English Version

KeepMyGoogleVoice是使用Python脚本自动发送短信给cloudflare来实现保活Google Voice。默认情况下,将发送一条短信到8336721001查询cloudflare.com的IP。如果你想修改,可以在执行完一键脚本后,更改/root/gv.py中的phoneNumbertext内容。

更新:8336721001号码已经失效,你可以更改phoneNumber为其他号码以及text为其他内容。

支持的系统版本:Debain 9/Ubuntu 16.04+/CentOS 7(不建议CentOS 7,可能存在兼容性问题。)

任意方法都无法登录Google Voice,尤其是当出现googlevoice.util.LoginError类似错误提示,建议前往https://accounts.google.com/DisplayUnlockCaptcha 检查是否开启了安全验证,而导致的账号被风控。

一键脚本如下,安装过程中需要输入google账号和密码。

wget --no-check-certificate -O gv.sh https://raw.githubusercontent.com/uselibrary/KeepMyGoogleVoice/master/gv.sh && chmod +x gv.sh && bash gv.sh

完成安装后,手动将你的账号和密码输入到/root/gv.py中,具体位置如如下:

voice.login(email="xxx@gmail.com", passwd="xxx")

仅当一键脚本无法正常使用时才参考此项

如果上述一脚脚本无法执行,可以手动安装。执行以下命令,手动输入Google账号和密码,并通过crontab将其设置为每月执行一次。

对于CentOS 7 执行以下命令

yum -y install epel-release
yum -y install python36
yum -y install python36-setuptools
easy_install-3.6 pip
pip3 install googlevoice
wget --no-check-certificate -O gv.py https://raw.githubusercontent.com/uselibrary/KeepMyGoogleVoice/master/gv.py && chmod +x gv.py

对于Debian 9/Ubuntu 16.04+ 执行以下命令

apt install python3
apt install python3-pip
pip3 install googlevoice
wget --no-check-certificate -O gv.py https://raw.githubusercontent.com/uselibrary/KeepMyGoogleVoice/master/gv.py && chmod +x gv.py

对于专业用户,脚本提供了以systemd模式运行(即进程守护),默认则是使用crontab在系统启动时启动。

About

Send SMS regularly through Python to keep Google Voice active

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published