# autotask_android
基于[airtest_mobileauto](airtest_mobileauto)的安卓自动化任务脚本
![GitHub forks](https://img.shields.io/github/forks/MobileAutoFlow/autoAnSign?color=60c5ba&style=for-the-badge)![GitHub stars](https://img.shields.io/github/stars/MobileAutoFlow/autoAnSign?color=ffd700&style=for-the-badge)
## 脚本开发环境说明
* 本脚本基于分辨率`960x540`, dpi`160`的安卓模拟器开发
* dpi或者分辨率不同很容易识别失败。
* 有的模拟器打开特定APP会闪退
安装
```
python -m pip install autoAnSign --upgrade
```
## 当前开发项目
### 基于url的签到
* `web_url`,直接打开特定url,实现签到, **适配任意的安卓设备**
* 将url存储到`web_url.txt`,下面是我常用的url
```
none
```
### 基于浏览器的签到
* *注: 本脚本于via-5.9.0测试通过, 需开启桌面模式、全屏、浏览器标识(windows/chrome),其他浏览器自行替换图片资源*
* 只能在境内的模拟器/容器内执行, 这些网站在不同地区显示的内容不同.
* `web_ablesci`, [科研通](https://www.ablesci.com/)每日签到
* `web_muchong`, [小木虫](https://muchong.com/bbs/)每日签到
### 基于app的签到
* `app_alicloud`, 阿里云盘每日签到(横屏版960x540)
## 运行
* 创建`tag.txt`则开启领取`tag.py`中定义的礼包
```
python run.py config.win.yaml
```
我的配置文件 `config.win.yaml`
```
mynode: 10
MuMudir: 'D:\Program Files\Netease\MuMu Player 12\shell'
MuMu_Instance:
10: "0"
LINK_dict:
10: Android:///127.0.0.1:16384
figdir: assets
logfile:
10: result.ce.txt
prefix: "autotask"
```
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=MobileAutoFlow/autoAnSign&type=Date)](https://star-history.com/#MobileAutoFlow/autoAnSign&Date)
Raw data
{
"_id": null,
"home_page": "https://github.com/MobileAutoFlow/AutoAnSign",
"name": "AutoAnSign",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "cndaqiang",
"author_email": "who@cndaqiang.ac.cn",
"download_url": "https://files.pythonhosted.org/packages/a2/8a/d86b2d96ae9f3a8565fc3f25d2f68bd48787b79fc61e74fcb22624609628/AutoAnSign-0.0.1.post2.tar.gz",
"platform": null,
"description": "# autotask_android\r\n\r\n\u57fa\u4e8e[airtest_mobileauto](airtest_mobileauto)\u7684\u5b89\u5353\u81ea\u52a8\u5316\u4efb\u52a1\u811a\u672c\r\n\r\n![GitHub forks](https://img.shields.io/github/forks/MobileAutoFlow/autoAnSign?color=60c5ba&style=for-the-badge)![GitHub stars](https://img.shields.io/github/stars/MobileAutoFlow/autoAnSign?color=ffd700&style=for-the-badge)\r\n\r\n\r\n## \u811a\u672c\u5f00\u53d1\u73af\u5883\u8bf4\u660e\r\n* \u672c\u811a\u672c\u57fa\u4e8e\u5206\u8fa8\u7387`960x540`, dpi`160`\u7684\u5b89\u5353\u6a21\u62df\u5668\u5f00\u53d1\r\n* dpi\u6216\u8005\u5206\u8fa8\u7387\u4e0d\u540c\u5f88\u5bb9\u6613\u8bc6\u522b\u5931\u8d25\u3002\r\n* \u6709\u7684\u6a21\u62df\u5668\u6253\u5f00\u7279\u5b9aAPP\u4f1a\u95ea\u9000\r\n\r\n\u5b89\u88c5\r\n\r\n```\r\npython -m pip install autoAnSign --upgrade\r\n```\r\n\r\n## \u5f53\u524d\u5f00\u53d1\u9879\u76ee\r\n### \u57fa\u4e8eurl\u7684\u7b7e\u5230\r\n* `web_url`,\u76f4\u63a5\u6253\u5f00\u7279\u5b9aurl,\u5b9e\u73b0\u7b7e\u5230, **\u9002\u914d\u4efb\u610f\u7684\u5b89\u5353\u8bbe\u5907**\r\n* \u5c06url\u5b58\u50a8\u5230`web_url.txt`,\u4e0b\u9762\u662f\u6211\u5e38\u7528\u7684url\r\n```\r\nnone\r\n```\r\n\r\n### \u57fa\u4e8e\u6d4f\u89c8\u5668\u7684\u7b7e\u5230\r\n* *\u6ce8: \u672c\u811a\u672c\u4e8evia-5.9.0\u6d4b\u8bd5\u901a\u8fc7, \u9700\u5f00\u542f\u684c\u9762\u6a21\u5f0f\u3001\u5168\u5c4f\u3001\u6d4f\u89c8\u5668\u6807\u8bc6(windows/chrome),\u5176\u4ed6\u6d4f\u89c8\u5668\u81ea\u884c\u66ff\u6362\u56fe\u7247\u8d44\u6e90*\r\n* \u53ea\u80fd\u5728\u5883\u5185\u7684\u6a21\u62df\u5668/\u5bb9\u5668\u5185\u6267\u884c, \u8fd9\u4e9b\u7f51\u7ad9\u5728\u4e0d\u540c\u5730\u533a\u663e\u793a\u7684\u5185\u5bb9\u4e0d\u540c.\r\n* `web_ablesci`, [\u79d1\u7814\u901a](https://www.ablesci.com/)\u6bcf\u65e5\u7b7e\u5230\r\n* `web_muchong`, [\u5c0f\u6728\u866b](https://muchong.com/bbs/)\u6bcf\u65e5\u7b7e\u5230\r\n\r\n### \u57fa\u4e8eapp\u7684\u7b7e\u5230\r\n* `app_alicloud`, \u963f\u91cc\u4e91\u76d8\u6bcf\u65e5\u7b7e\u5230(\u6a2a\u5c4f\u7248960x540)\r\n\r\n\r\n\r\n\r\n## \u8fd0\u884c\r\n* \u521b\u5efa`tag.txt`\u5219\u5f00\u542f\u9886\u53d6`tag.py`\u4e2d\u5b9a\u4e49\u7684\u793c\u5305\r\n\r\n```\r\npython run.py config.win.yaml\r\n```\r\n\r\n\u6211\u7684\u914d\u7f6e\u6587\u4ef6 `config.win.yaml`\r\n```\r\nmynode: 10\r\nMuMudir: 'D:\\Program Files\\Netease\\MuMu Player 12\\shell'\r\nMuMu_Instance:\r\n 10: \"0\"\r\nLINK_dict:\r\n 10: Android:///127.0.0.1:16384\r\nfigdir: assets\r\nlogfile:\r\n 10: result.ce.txt\r\nprefix: \"autotask\"\r\n```\r\n\r\n\r\n## Star History\r\n\r\n[![Star History Chart](https://api.star-history.com/svg?repos=MobileAutoFlow/autoAnSign&type=Date)](https://star-history.com/#MobileAutoFlow/autoAnSign&Date)\r\n",
"bugtrack_url": null,
"license": null,
"summary": "\u5b89\u5353\u7b7e\u5230",
"version": "0.0.1.post2",
"project_urls": {
"Homepage": "https://github.com/MobileAutoFlow/AutoAnSign"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a28ad86b2d96ae9f3a8565fc3f25d2f68bd48787b79fc61e74fcb22624609628",
"md5": "294d9b30fa08f59217db6643682562a3",
"sha256": "b41d5e6223f299f3da3d9b74f78a8f43e8294fedbf2390ae44daffb3e98ecdbf"
},
"downloads": -1,
"filename": "AutoAnSign-0.0.1.post2.tar.gz",
"has_sig": false,
"md5_digest": "294d9b30fa08f59217db6643682562a3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 35409,
"upload_time": "2024-12-13T07:33:33",
"upload_time_iso_8601": "2024-12-13T07:33:33.696238Z",
"url": "https://files.pythonhosted.org/packages/a2/8a/d86b2d96ae9f3a8565fc3f25d2f68bd48787b79fc61e74fcb22624609628/AutoAnSign-0.0.1.post2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-13 07:33:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MobileAutoFlow",
"github_project": "AutoAnSign",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "autoansign"
}