Skip to content
Send SMS regularly through Python to keep Google Voice active
Shell Python
Branch: master
Clone or download
Latest commit e631ece Jun 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes Initial commit May 31, 2019
.gitignore Initial commit May 31, 2019
LICENSE Initial commit May 31, 2019
README-en.md Update README Jun 1, 2019
README.md Update README.md Jun 4, 2019
gv.py Update May 31, 2019
gv.sh Update README Jun 1, 2019

README.md

KeepMyGoogleVoice

English Version

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

支持的系统版本: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
You can’t perform that action at this time.