diff --git a/README_template.md b/README_template.md index 3782383d9..69bb5f0b4 100644 --- a/README_template.md +++ b/README_template.md @@ -93,8 +93,7 @@ hosts 文件在每个系统的位置不一,详情如下: #### BSD/macOS -`sed -i "" "/# GitHub520 Host Start/,/# Github520 Host End/d" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts` - +`sudo sed -i "" "/# GitHub520 Host Start/,/# Github520 Host End/d" /etc/hosts && curl https://raw.hellogithub.com/hosts | sudo tee -a /etc/hosts` 将上面的命令添加到 cron,可定时执行。使用前确保 GitHub520 内容在该文件最后部分。 #### 在 Dcker 中运行,若遇到 `Device or resource busy` 错误,可使用以下命令执行 diff --git a/requirements.txt b/requirements.txt index d997081d0..d8386203f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ requests-html==0.10.0 pythonping==1.1.4 retry==0.9.2 +lxml_html_clean