跳转到主要内容

一个用于探索你的Tinder数据的趣味工具。

项目描述

tinderdata

一个用于获取你对Tinder使用洞察的非常简单的包。

安装

此代码与所有目前支持的Python版本兼容。使用以下命令在虚拟环境中安装:

python -m pip install tinderdata

使用

此实用工具需要您从Tinder平台导出数据,具体说明请参阅此处。您应获得一个单独的tinderdata.json文件,这是此脚本所需的输入。

在已激活的环境中安装此包后,可以通过python -m tinderdata或通过新创建的tinderdata命令调用它。

详细使用说明如下

 Usage: python -m tinderdata [OPTIONS] [DATA_PATH]                                      
                                                                                        
 Get insight on your Tinder usage.                                                      
                                                                                        
╭─ Arguments ──────────────────────────────────────────────────────────────────────────╮
│   data_path      [DATA_PATH]  Location, relative or absolute, of the exported JSON   │
│                               file with your user data.                              │
│                               [default: None]                                        │
╰──────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────╮
│ --show-figures          --no-show-figures          Whether or not to show figures    │
│                                                    when plotting insights.           │
│                                                    [default: no-show-figures]        │
│ --save-figures          --no-save-figures          Whether or not to save figures    │
│                                                    when plotting insights.           │
│                                                    [default: no-save-figures]        │
│ --log-level                                  TEXT  The base console logging level.   │
│                                                    Can be 'debug', 'info', 'warning' │
│                                                    and 'error'.                      │
│                                                    [default: info]                   │
│ --install-completion                               Install completion for the        │
│                                                    current shell.                    │
│ --show-completion                                  Show completion for the current   │
│                                                    shell, to copy it or customize    │
│                                                    the installation.                 │
│ --help                                             Show this message and exit.       │
╰──────────────────────────────────────────────────────────────────────────────────────╯

示例命令如下

python -m tinderdata path_to_tinderdata.json --save-figures --log-level debug

脚本将打印出一些洞察语句,最后是您应该粘贴以获取桑基图的文本。然后,它将创建一个plots文件夹,并填充其中的视觉内容。

您还可以从包中导入高级对象,并按需使用

from tinderdata import TinderData

tinder = TinderData("path/to/tinderdata.json")
tinder.output_sankey_string()
tinder.plot_messages_loyalty(showfig=True, savefig=False)

输出示例

以下是脚本的输出示例

Example_1

Example_2


由fsoubelet用♥制作
MIT © 2019 Felix Soubelet

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

tinderdata-0.4.2.tar.gz (5.4 MB 查看哈希值)

上传时间

构建分布

tinderdata-0.4.2-py3-none-any.whl (12.1 kB 查看哈希值)

上传时间 Python 3