maimai-cat


Namemaimai-cat JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://www.linkedin.com/in/chandlersong/
Summarymaimai api tool
upload_time2024-12-26 14:44:23
maintainerNone
docs_urlNone
authorchandler song
requires_pythonNone
licenseMIT
keywords maimai api tool
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Introduction
## Install package
```shell
pip install maimai_cat
```
## Preparation

- create file `maimai_cookies.json`

- please use Chrome Extension `EditThisCookie` to export maimai cookies to `maimai_cookies.json`



##  Example Usage:

## - Basic

```python
# 第一步: 实例化
from maimai.api import MaimaiAPI

api = MaimaiAPI().connect()

# 获取用户组
api.pretty_print(api.group.read())

# 搜索keyword,指定页码,page从0开始,最多到30 
api.pretty_print(api.search.keyword("Google", page=0))

# 获取用户信息,参数为用户id
api.pretty_print(api.user.read(41962985))

# 把用户id加入到用户组,参数为用户id和用户组id
api.pretty_print(api.group.add_user_to_group(41962985, 1323029))

# 星标用户,参数为用户id
api.pretty_print(api.group.unstar(41962985))
```

 ## -Search

```python
# 关键词搜索,页码从0开始,最大30
api.pretty_print(api.search.keyword("Google",page=0))

# 关键词搜索,提取信息,返回json数据
api.search.extract_search_result(api.search.keyword("Microsoft",page=0))
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://www.linkedin.com/in/chandlersong/",
    "name": "maimai-cat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "maimai api tool",
    "author": "chandler song",
    "author_email": "275737875@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/d6/6a/4b100a407cb7cb52bba6783eb621fcdc015ed40a58dad71495e63f126de7/maimai_cat-0.0.2.tar.gz",
    "platform": "all",
    "description": "\r\n# Introduction\r\n## Install package\r\n```shell\r\npip install maimai_cat\r\n```\r\n## Preparation\r\n\r\n- create file `maimai_cookies.json`\r\n\r\n- please use Chrome Extension `EditThisCookie` to export maimai cookies to `maimai_cookies.json`\r\n\r\n\r\n\r\n##  Example Usage:\r\n\r\n## - Basic\r\n\r\n```python\r\n# \u7b2c\u4e00\u6b65: \u5b9e\u4f8b\u5316\r\nfrom maimai.api import MaimaiAPI\r\n\r\napi = MaimaiAPI().connect()\r\n\r\n# \u83b7\u53d6\u7528\u6237\u7ec4\r\napi.pretty_print(api.group.read())\r\n\r\n# \u641c\u7d22keyword,\u6307\u5b9a\u9875\u7801\uff0cpage\u4ece0\u5f00\u59cb\uff0c\u6700\u591a\u523030 \r\napi.pretty_print(api.search.keyword(\"Google\", page=0))\r\n\r\n# \u83b7\u53d6\u7528\u6237\u4fe1\u606f,\u53c2\u6570\u4e3a\u7528\u6237id\r\napi.pretty_print(api.user.read(41962985))\r\n\r\n# \u628a\u7528\u6237id\u52a0\u5165\u5230\u7528\u6237\u7ec4,\u53c2\u6570\u4e3a\u7528\u6237id\u548c\u7528\u6237\u7ec4id\r\napi.pretty_print(api.group.add_user_to_group(41962985, 1323029))\r\n\r\n# \u661f\u6807\u7528\u6237\uff0c\u53c2\u6570\u4e3a\u7528\u6237id\r\napi.pretty_print(api.group.unstar(41962985))\r\n```\r\n\r\n ## -Search\r\n\r\n```python\r\n# \u5173\u952e\u8bcd\u641c\u7d22\uff0c\u9875\u7801\u4ece0\u5f00\u59cb\uff0c\u6700\u592730\r\napi.pretty_print(api.search.keyword(\"Google\",page=0))\r\n\r\n# \u5173\u952e\u8bcd\u641c\u7d22\uff0c\u63d0\u53d6\u4fe1\u606f\uff0c\u8fd4\u56dejson\u6570\u636e\r\napi.search.extract_search_result(api.search.keyword(\"Microsoft\",page=0))\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "maimai api tool",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://www.linkedin.com/in/chandlersong/"
    },
    "split_keywords": [
        "maimai",
        "api",
        "tool"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d66a4b100a407cb7cb52bba6783eb621fcdc015ed40a58dad71495e63f126de7",
                "md5": "2c4a1bd66c3d00c5c69e9517731fdf2d",
                "sha256": "123bbe4c19a34288900ba9fe0fba673f7bef90bbe638e79da79cd9eb80280a80"
            },
            "downloads": -1,
            "filename": "maimai_cat-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2c4a1bd66c3d00c5c69e9517731fdf2d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6041,
            "upload_time": "2024-12-26T14:44:23",
            "upload_time_iso_8601": "2024-12-26T14:44:23.552387Z",
            "url": "https://files.pythonhosted.org/packages/d6/6a/4b100a407cb7cb52bba6783eb621fcdc015ed40a58dad71495e63f126de7/maimai_cat-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-26 14:44:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "maimai-cat"
}
        
Elapsed time: 0.39159s