Git Product home page Git Product logo

ssrsubscribe's Introduction

SSRSubscribe

这是一个用PHP写的小小的酸酸乳订阅。

配置

编辑 config/config.php ,所有的东西都在里面了

<?php

return [
    // 订阅列表必须有名字
    'subscribe_name' => 'my subscribe',
    'ssr'            => [
        // 'ssr://xxx',
    ],
    'ss'             => [
        // ss是可以升级至ssr的,如果你有ss也可以添加进来
        // 'ss://xxx',
    ],
    'access_token'   => [
        // 键只是给自己一个备注而已
        // 以免当分配了过多access_token时不知道哪个打哪个
        // 想注销access_token?直接删了好了
        '自己人'  => 'abc',
        'XX群友' => 'def',
        'YY群友' => 'ghi',
    ],
];

初始化

cd PROJECT_DIR
composer install

怎么运行

本地

cd PROJECT_DIR
php -S localhost:8080

服务器

丢到服务器上面就完事了

爬虫?

如果你有爬虫程序,可以直接将爬来的酸酸乳或者酸酸链接写到对应的ssr.php以及ss.php

参考SSSpider.php

然后将爬虫脚本添加到云监控上面定时采集就完事了

路由

/usage
/subscribe?ACCESS_TOKEN=xxx

如果你的程序不是放在根目录下,假设放在ssr目录下,那么对应的路由就是

/ssr/usage
/ssr/subscribe?ACCESS_TOKEN=xxx

ssrsubscribe's People

Contributors

liesauer avatar

Watchers

 avatar

Forkers

pansongjun

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.