好多朋友手里都有 GV 号(Google Voice 的简称),目前谷歌出了回收政策,长时间不用的 GV 号会被系统收到,如果防范收回也就成了大家比较关心的问题,之前博主也发过几篇文章,只要定期发送信息就可以防止回收,但是万一比较尽快的情况下忘记了怎么办?今天看到网上大佬 imes 写了一个自动保号的一键脚本,就分享给大家。
github 地址:https://github.com/uselibrary/KeepMyGoogleVoice
一键脚本及配置:
1
|
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中,具体位置如如下:
1
|
voice.login(email='xxxxx@gmail.com', passwd='xxxxx')
|
操作与说明
KeepMyGoogleVoice 是使用 Python 脚本自动发送短信给 cloudflare 来实现保活 Google Voice。默认情况下,将发送一条短信到 8336721001查询 baidu.com的 IP。如果你想修改,可以在执行完一键脚本后,更改 /root/gv.py中的 phoneNumber和 text内容。
支持的系统版本:Debain 9/Ubuntu 16.04+/CentOS 7(不建议 CentOS 7,可能存在兼容性问题)
执行此脚本后,对于 CentOS 7 将自动安装 python3.6 和 pip3;对于 Debain 9/Ubuntu 18.04+将自动安装 python3 和 python3-pip。
一键脚本如下,安装过程中需要输入 google 账号和密码
1
|
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中,具体位置如如下:
1
|
voice.login(email='xxxxx@gmail.com', passwd='xxxxx')
|
仅当一键脚本无法正常使用是才参考此项
如果上述一脚脚本无法执行,可以手动安装。执行以下命令,手动输入 Google 账号和密码,并通过 crontab 将其设置为每月执行一次。
1
|
wget --no-check-certificate -O gv.py https://raw.githubusercontent.com/uselibrary/KeepMyGoogleVoice/master/gv.py && chmod +x gv.py
|
并且,对于 CentOS 7 执行以下命令
1
2
3
4
5
|
yum -y install epel-release
yum -y install python36
yum -y install python36-setuptools
easy_install-3.6 pip
pip3 -y install googlevoice
|
对于 Debian 9/Ubuntu 16.04+ 执行以下命令
1
2
3
|
apt install python3
apt install python3-pip
pip3 install googlevoice
|
原文:https://pa.ci/92.html
本文为原创文章,版权归国外主机测评所有,欢迎分享本文,转载请保留出处!