{"id":15660444,"url":"https://github.com/0x5e/youku_speed_up","last_synced_at":"2026-03-06T01:03:03.061Z","repository":{"id":77351245,"uuid":"58868191","full_name":"0x5e/youku_speed_up","owner":"0x5e","description":"优酷会员宽带提速脚本(电信/联通)","archived":false,"fork":false,"pushed_at":"2017-07-24T15:10:08.000Z","size":11,"stargazers_count":21,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T11:01:33.481Z","etag":null,"topics":["api","python","youku"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/0x5e.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-15T15:09:29.000Z","updated_at":"2025-03-02T16:26:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f5948cf-4dd8-43eb-bec2-fc86522bfd9b","html_url":"https://github.com/0x5e/youku_speed_up","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0x5e/youku_speed_up","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2Fyouku_speed_up","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2Fyouku_speed_up/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2Fyouku_speed_up/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2Fyouku_speed_up/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x5e","download_url":"https://codeload.github.com/0x5e/youku_speed_up/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x5e%2Fyouku_speed_up/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","python","youku"],"created_at":"2024-10-03T13:21:45.864Z","updated_at":"2026-03-06T01:03:03.041Z","avatar_url":"https://github.com/0x5e.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 优酷宽带加速API（2017.7.1）\n\n## 1.登录\n\n### 1.1 获取表单Token\n\nhttp://account.youku.com/refreshFormToken.json （或 http://account.youku.com/getConfig.json ）\n\n返回值\n\n```js\nnull({\n    \"data\": {\n        \"formtoken\": \"B99D8D94C231583B742A7AF59BF8151B\"\n    },\n    \"errorCode\": \"\",\n    \"errorMsg\": \"\",\n    \"result\": \"success\"\n})\n```\n\n### 1.2 登录\n\nhttp://account.youku.com/login/confirm.json\n\n请求参数\n\n```js\n{\n\t\"formtoken\": formtoken,\n\t\"passport\": passport,\n\t\"password\": md5(password),\n\t\"loginType\": \"passport_pwd\",\n\t\"UA\": \"FFFF00000000016514CE\",\n\t\"jsToken\": \"0\"\n}\n```\n\n返回值\n\n```js\nnull({\n    \"errorCode\": \"\",\n    \"errorMsg\": \"\",\n    \"msg\": {\n        \"domains\": [\n            \"account.laifeng.com\",\n            \"account.tudou.com\",\n            \"account.soku.com\",\n            \"account.youku.com\"\n        ]\n    },\n    \"result\": \"success\"\n})\n```\n\n## 2.获取状态\n\nhttp://vip.youku.com/ajax/speedup/get_status.jsonp\n\n返回值\n\n```js\ncallback({\n    \"code\": \"20000\",\n    \"msg\": \"成功\",\n    \"result\": {\n        \"speed_up_state\": false,\n        \"speed_up_switch\": 1 # 1:开启, 2:关闭\n    }\n})\n```\n\n## 3.开启「加速服务开关」\n\nhttp://vip.youku.com/?c=ajax\u0026a=ajax_speedup_service_switch\n\n返回值\n\n```js\n{\n    \"code\": \"20000\",\n    \"msg\": \"成功\",\n    \"result\": {\n        \"state\": \"2\"\n    }\n}\n```\n\n## 4.开启「宽带加速」\n\nhttp://vip.youku.com/?c=ajax\u0026a=ajax_do_speed_up\n\n返回值\n\n```js\n// 成功\n\n// 失败\n{\n    \"code\": \"20023\",\n    \"msg\": \"运营商繁忙\",\n    \"type\": \"operator_not_range\",\n    \"result\": {\n        \"operator_error_code\": 2001,\n        \"operator_error_msg\": \"中国电信提示：[2001]业务处理错误：用户线路暂不具备提速能力,加速ID:xxxxxxxxx\"\n    }\n}\n```\n\n不要问我「加速服务开关」与「宽带加速」的区别，我可讲不清。。。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x5e%2Fyouku_speed_up","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x5e%2Fyouku_speed_up","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x5e%2Fyouku_speed_up/lists"}