GithubHelp home page GithubHelp logo

yourant / facebook_auto Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amazingcoderxyz/facebook_auto

0.0 0.0 0.0 16.61 MB

Facebook自动养号系统,分布式部署,实现了自动化登陆、浏览、聊天等功能。根据账号地域和使用记录智能分配到适合的机器。

Python 8.61% JavaScript 35.69% HTML 48.09% CSS 7.61% Batchfile 0.01% Shell 0.01%

facebook_auto's Introduction

启动说明

1.web server

pipenv shell
cd web_service
env=[pro|test] python3 manage.py runserver 0.0.0.0:80

例: env=test python3 manage.py runserver 0.0.0.0:80

注:env用以配置环境信息

  • pro 代表生产环境, 若不设置env, pro为默认
  • test 代表测试环境

2.任务调度系统

pipenv shell
cd task_service
python3 start_task.py [pro|test]  [restart|new]
or
python3 start_task.py

例: python3 start_task.py test restart

注:

[pro|test] 指定环境信息

  • pro 代表生产环境, , 对应配置文件为config/config.yaml, 生产环境chrome 启动时会指定headless参数
  • tes 代表测试环境, 推荐开发人员自测时使用, 对应配置文件为config/config_test.yaml

[restart|new] 指定任务启动模式

  • restart 代表将对数据库中所有未结束的任务重新启动, 但并不会清除已经存在的job, 多用于系统宕机后重启或本地测试
  • new 代表仅启动状态为‘new’的任务

3.Worker

pipenv shell
cd task_service
celery -A start_worker -Q *queuenames worker -l info -c 4 -Ofair -f *log_path -env [pro|test]
or
cd task_service
python3 start_worker.py 

例:celery -A start_worker -Q default,China,American,Japan worker -l info -c 4 -Ofair -f logs/celery.log -env test

注:

  • -Q 指定了接收任务的队列
  • -l 指定日志级别
  • -c 指定并发数
  • -Ofair 禁用预取
  • -f 指定celery日志存放目录, 若不指定日志将输入在控制台
  • -env 参数指定了环境信息,可选项为pro或test, 请保持与任务调度系统启动时的环境信息一致。

其他

建议开发人员使用test环境, 即指定test参数, 可以通过修改config_test.yaml来调整系统运行时的一些参数

facebook_auto's People

Contributors

amazingcoderxyz avatar guangda-orderplus avatar leemon7 avatar mackmeng 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.