From 6ee02ec00ad9e7fb641cde6dc02760efbf9aa92c Mon Sep 17 00:00:00 2001 From: CharlesPikachu <1159254961@qq.com> Date: Thu, 20 Feb 2020 17:43:32 +0800 Subject: [PATCH] update for pip --- README.md | 61 ++++++++++++++++++++++++++++--------------------------- setup.py | 14 ++++++++++--- 2 files changed, 42 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 22fd68c..271c225 100644 --- a/README.md +++ b/README.md @@ -5,42 +5,43 @@ You can star this repository to keep track of the project if it's helpful for yo ``` # Support List -| Websites | support PC API? | support mobile API? | in Chinese | -| :----: | :----: | :----: | :----: | -| weibo | [Yes](./DecryptLogin/platforms/weibo.py) | [Yes](./DecryptLogin/platforms/weibo.py) | 新浪微博 | -| douban | [Yes](./DecryptLogin/platforms/douban.py) | No | 豆瓣 | -| GitHub | [Yes](./DecryptLogin/platforms/github.py) | No | Github | -| Music163 | [Yes](./DecryptLogin/platforms/music163.py) | No | 网易云音乐 | -| 12306 | [Yes](./DecryptLogin/platforms/zt12306.py) | No | 中国铁路12306 | -| QQZone | No | [Yes](./DecryptLogin/platforms/QQZone.py) | QQ空间 | -| QQQun | No | [Yes](./DecryptLogin/platforms/QQQun.py) | QQ群 | -| QQId | No | [Yes](./DecryptLogin/platforms/QQId.py) | 我的QQ中心 | -| zhihu | [Yes](./DecryptLogin/platforms/zhihu.py) | No | 知乎 | -| Bilibili | [Yes](./DecryptLogin/platforms/bilibili.py) | No | B站 | -| toutiao | No | [Yes](./DecryptLogin/platforms/toutiao.py) | 今日头条 | -| taobao | [Yes](./DecryptLogin/platforms/taobao.py) | No | 淘宝 | -| jingdong | [Yes](./DecryptLogin/platforms/jingdong.py) | No | 京东 | +| Websites | support PC API? | support mobile API? | in Chinese | +| :----: | :----: | :----: | :----: | +| weibo | √ | √ | 新浪微博 | +| douban | √ | × | 豆瓣 | +| GitHub | √ | × | Github | +| Music163 | √ | × | 网易云音乐 | +| 12306 | √ | × | 中国铁路12306 | +| QQZone | × | √ | QQ空间 | +| QQQun | × | √ | QQ群 | +| QQId | × | √ | 我的QQ中心 | +| zhihu | √ | × | 知乎 | +| Bilibili | √ | × | B站 | +| toutiao | × | √ | 今日头条 | +| taobao | √ | × | 淘宝 | +| jingdong | √ | × | 京东 | # Some Cases by Using DecryptLogin -| Name | Introduction | code | in Chinese | -| :----: | :----: | :----: | :----: | -| weiboMonitor | [click](https://mp.weixin.qq.com/s/uOT1cGqXkOq-Hdc8TVnglg) | [click](./Examples/weiboMonitor) | 微博监控 | -| QQReport | [click](https://mp.weixin.qq.com/s/dsVtEp_TFeyeSAAUn1zFEw) | [click](./Examples/QQReport) | 生成QQ个人专属报告 | -| bilibiliDownloadUserVideos | [click](https://mp.weixin.qq.com/s/GaVW4_nbAaO0QvphI7QgnA) | [click](./Examples/bilibiliDownloadUserVideos) | 下载B站指定UP主的所有视频 | -| NeteaseSongListDownloader | [click](https://mp.weixin.qq.com/s/_82U7luG6jmV-xb8-Qkiew) | [click](./Examples/NeteaseSongListDownloader) | 网易云个人歌单下载器 | -| NeteaseListenLeaderboard | [click](https://mp.weixin.qq.com/s/Wlf1a82oACc9N7zGezcy8Q) | [click](./Examples/NeteaseListenLeaderboard) | 网易云个人听歌排行榜 | +| Name | Introduction | code | in Chinese | +| :----: | :----: | :----: | :----: | +| weiboMonitor | [click](https://mp.weixin.qq.com/s/uOT1cGqXkOq-Hdc8TVnglg) | [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/Examples/weiboMonitor) | 微博监控 | +| QQReport | [click](https://mp.weixin.qq.com/s/dsVtEp_TFeyeSAAUn1zFEw) | [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/Examples/QQReport) | 生成QQ个人专属报告 | +| bilibiliDownloadUserVideos | [click](https://mp.weixin.qq.com/s/GaVW4_nbAaO0QvphI7QgnA) | [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/Examples/bilibiliDownloadUserVideos) | 下载B站指定UP主的所有视频 | +| NeteaseSongListDownloader | [click](https://mp.weixin.qq.com/s/_82U7luG6jmV-xb8-Qkiew) | [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/Examples/NeteaseSongListDownloader) | 网易云个人歌单下载器 | +| NeteaseListenLeaderboard | [click](https://mp.weixin.qq.com/s/Wlf1a82oACc9N7zGezcy8Q) | [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/Examples/NeteaseListenLeaderboard) | 网易云个人听歌排行榜 | # Install -#### Use setup.py -```sh -Step1: -git clone https://github.com/CharlesPikachu/DecryptLogin.git -Step2: -cd DecryptLogin -> run "python setup.py install" +#### Pip install ``` -#### Use pip +run "pip install DecryptLogin" +``` +#### Source code install ```sh -pip install git+https://github.com/CharlesPikachu/DecryptLogin.git@master +(1) Offline +Step1: git clone https://github.com/CharlesPikachu/DecryptLogin.git +Step2: cd DecryptLogin -> run "python setup.py install" +(2) Online +run "pip install git+https://github.com/CharlesPikachu/DecryptLogin.git@master" ``` # Usage diff --git a/setup.py b/setup.py index f885283..bc90030 100644 --- a/setup.py +++ b/setup.py @@ -8,19 +8,27 @@ Author: GitHub: https://github.com/CharlesPikachu 更新日期: - 2019-03-04 + 2020-02-20 ''' import DecryptLogin from setuptools import setup, find_packages +'''readme''' +with open('README.md', 'r') as f: + long_description = f.read() + + +'''setup''' setup( name='DecryptLogin', version=DecryptLogin.__version__, description='Login some website using requests.', + long_description=long_description, + long_description_content_type='text/markdown', classifiers=[ 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python', + 'Programming Language :: Python :: 3', 'Intended Audience :: Developers', 'Operating System :: OS Independent'], author='Charles', @@ -28,7 +36,7 @@ setup( author_email='charlesjzc@qq.com', license='MIT', include_package_data=True, - install_requires=['requests', 'pycryptodome', 'rsa', 'PyExecJS'], + install_requires=['requests >= 2.22.0', 'pycryptodome >= 3.8.1', 'rsa >= 4.0', 'PyExecJS >= 1.5.1'], zip_safe=True, packages=find_packages() ) \ No newline at end of file