{"id":22026070,"url":"https://github.com/amazingcoderpro/facebook_robot","last_synced_at":"2025-05-07T10:15:15.607Z","repository":{"id":83335048,"uuid":"176395922","full_name":"amazingcoderpro/facebook_robot","owner":"amazingcoderpro","description":"Facebook自动养号系统，分布式部署，实现了自动化登陆、浏览、聊天等功能。根据账号地域和使用记录智能分配到适合的机器。","archived":false,"fork":false,"pushed_at":"2019-05-06T08:41:34.000Z","size":17008,"stargazers_count":29,"open_issues_count":2,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T10:15:00.311Z","etag":null,"topics":["celery","facebook","facebook-login","python","selenium"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amazingcoderpro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-03-19T01:08:32.000Z","updated_at":"2025-03-18T07:01:04.000Z","dependencies_parsed_at":"2023-06-14T04:32:37.088Z","dependency_job_id":null,"html_url":"https://github.com/amazingcoderpro/facebook_robot","commit_stats":null,"previous_names":["amazingcoder666/facebook_auto","amazingcoderxyz/facebook_auto","amazingcoderpro/facebook_auto","amazingcoderpro/facebook_robot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingcoderpro%2Ffacebook_robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingcoderpro%2Ffacebook_robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingcoderpro%2Ffacebook_robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingcoderpro%2Ffacebook_robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazingcoderpro","download_url":"https://codeload.github.com/amazingcoderpro/facebook_robot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252856558,"owners_count":21814858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","facebook","facebook-login","python","selenium"],"created_at":"2024-11-30T07:25:06.983Z","updated_at":"2025-05-07T10:15:15.597Z","avatar_url":"https://github.com/amazingcoderpro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 启动说明\r\n## 1.web server\r\n```\r\npipenv shell\r\ncd web_service\r\nenv=[pro|test] python3 manage.py runserver 0.0.0.0:80\r\n```\r\n*例: env=test python3 manage.py runserver 0.0.0.0:80* \r\n\r\n*注：env用以配置环境信息*\r\n- pro 代表生产环境, 若不设置env, pro为默认\r\n- test 代表测试环境\r\n\r\n\r\n## 2.任务调度系统\r\n```\r\npipenv shell\r\ncd task_service\r\npython3 start_task.py [pro|test]  [restart|new]\r\nor\r\npython3 start_task.py\r\n```\r\n*例: python3 start_task.py test restart* \r\n\r\n*注：*\r\n\r\n[pro|test] 指定环境信息 \r\n- pro 代表生产环境, , 对应配置文件为config/config.yaml, 生产环境chrome 启动时会指定headless参数\r\n- tes 代表测试环境, 推荐开发人员自测时使用, 对应配置文件为config/config_test.yaml  \r\n\r\n[restart|new] 指定任务启动模式\r\n- restart 代表将对数据库中所有未结束的任务重新启动, 但并不会清除已经存在的job, 多用于系统宕机后重启或本地测试\r\n- new 代表仅启动状态为‘new’的任务 \r\n\r\n## 3.Worker\r\n```\r\npipenv shell\r\ncd task_service\r\ncelery -A start_worker -Q *queuenames worker -l info -c 4 -Ofair -f *log_path -env [pro|test]\r\nor\r\ncd task_service\r\npython3 start_worker.py \r\n```\r\n*例：celery -A start_worker -Q default,China,American,Japan worker -l info -c 4 -Ofair -f logs/celery.log -env test*\r\n\r\n*注：*\r\n- -Q 指定了接收任务的队列\r\n- -l 指定日志级别\r\n- -c 指定并发数\r\n- -Ofair 禁用预取\r\n- -f 指定celery日志存放目录, 若不指定日志将输入在控制台\r\n- -env 参数指定了环境信息，可选项为pro或test, 请保持与任务调度系统启动时的环境信息一致。\r\n\r\n## 其他\r\n建议开发人员使用test环境, 即指定test参数, 可以通过修改config_test.yaml来调整系统运行时的一些参数","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazingcoderpro%2Ffacebook_robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famazingcoderpro%2Ffacebook_robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazingcoderpro%2Ffacebook_robot/lists"}