https://github.com/zzxzzk115/autohosts
个人用,自动更新Hosts的脚本,仅供学习使用。
https://github.com/zzxzzk115/autohosts
coursera github hosts
Last synced: 2 months ago
JSON representation
个人用,自动更新Hosts的脚本,仅供学习使用。
- Host: GitHub
- URL: https://github.com/zzxzzk115/autohosts
- Owner: zzxzzk115
- License: mit
- Created: 2020-12-22T09:10:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-22T11:41:09.000Z (over 5 years ago)
- Last Synced: 2025-05-29T17:20:36.554Z (about 1 year ago)
- Topics: coursera, github, hosts
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AutoHosts
个人用,自动更新Hosts的脚本,仅供学习使用。
目前已经添加了GitHub和Coursera。
## 使用
> 注意:需要python和pip环境
### Clone到本地
```bash
git clone https://github.com/zzxzzk115/AutoHosts.git
```
### 安装依赖
Linux:
```bash
cd AutoHosts
./install_dependencies.sh
```
Windows:
双击运行`install_dependencies.bat`
### 运行
在`AutoHosts`中打开终端或者cmd:
```bash
python main.py
```
### 自定义插件
在`AutoHosts/plugins`中添加`plugin_xxx.py`,详细方法请参考`AutoHosts/plugins/`中的源码。