Giter Club home page Giter Club logo

get-free-ss's Introduction

Get-Free-SS

✋免责申明

本项目只是自己学习 Node 爬虫的随手之作,仅供 GitHub 用户学习与交流 Node,切勿用于其他用途
**居民请自觉关闭并在24小时之内删掉与本项目相关的一切内容,否则出现一切问题,项目作者概不负责

📜功能

  • 自动爬取网络上公开的免费 SS、SSR 账号密码
  • 将爬取到的账号并写入本地文件中
  • 如果配置了 SS\SSR 软件的 gui-config.json 地址,则会自动替换掉软件中旧的账号
  • 支持部署在服务器上,将爬取到的账号渲染到一个网页上,解决手机、iPad无法运行脚本时的科学上网问题

⏬软件下载

客户端软件下载请到 GitHub 搜索 shadowsocks-windows 或者 shadowsocksr-csharp

⚙设置

本脚本需要访问几个特点的网站或接口,如果脚本运行错误,可能需要设置以下内容:

CentOS 环境

# 修改 HOST
# 1. 进入 HOST 文件
vi /etc/hosts

# 2. 在文件最后位置把以下两行加进去
23.95.215.189 youneed.win
23.95.215.189 www.youneed.win
104.18.36.36 free-ss.site
# 修改 DNS
# 1. 进入 DNS 文件
vi /etc/resolv.conf

# 2. 在文件最后位置把以下一行加进去
nameserver 114.114.114.114

Windows 环境

# 修改 HOST
# 1. 目录:C:/Windows/System32/drivers/etc,用记事本打开host文件

# 2. 在文件最后位置再把以下两行加进去
23.95.215.189 youneed.win
23.95.215.189 www.youneed.win
104.18.36.36 free-ss.site

# 3. 进入命令行(win+R 输入cmd回车),执行:ipconfig /flushdns
# 4. 重新刷新页面即可,如失效请还原host并用代理访问

🎡使用

本脚本使用了 nodenpm

# 1. 检查 node 和 npm,如果都有输出版本号,则可以进行下一步,否则请自行安装node
node -v
npm -v

# 2. 下载或使用 git clone 本项目到你的电脑
git clone https://github.com/maxmeng93/Get-Free-SS.git

# 3. 进入脚本目录
cd Get-Free-SS

# 4. 安装依赖
npm i

# 5. 配置 config ,如果不需要自动替换软件中的旧的SS账号,则此步骤可以省略
# 打开 config/index.js 文件,url 设置为你的 SS\SSR 软件的 'gui-config.json' 文件路径,

# 6. 运行
# 1) 常规模式
npm start
# 2) 服务端部署模式
npm run server

# 7. 查看 data 文件夹中生成的文件

👀注意

  • 配置 config 文件中的 url 时,一定要注意路径的斜杆必须转义。
  • 如果需要替换 gui-config.json 中的账号密码配置,请确保已经启动过软件,并已生成配置文件(可以通过修改设置、添加节点等方式生成配置文件)。
  • 服务端部署模式还需要用 nginx 做代理或者直接把配置文件中的端口号改为 80

📢说明

网络中的内容良莠不齐,请合理使用本脚本。

get-free-ss's People

Contributors

maxmeng93 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.