跳转到主要内容

Social-watcher 允许您监控Twitter和Instagram个人资料。

项目描述

Social Watcher

maintain status

Social Watchers 允许您监控和记录Twitter和Instagram账户的变化。它可以通过Telegram向您发出警报。

先决条件

在您开始之前,请确保您已满足以下要求

  • 互联网连接
  • Python 3.7+

安装social-watcher

首先,将仓库克隆到本地并安装要求。您可以使用 pip3 install -r requirements.txt 安装要求。
然后您需要根据需要编辑 configs.json.example 并将其重命名为 configs.json。最后,您可以运行 watcher.py

度量

正在监控的度量列表。

平台 度量
Twitter name, followers, following, biography, profile_photo, tweets, likes, birthday, website
Instagram name, followers, following, biography, profile_photo, posts, is_private, is_verified

自定义配置

{
    "interval": 300, # general interval time, default is 86400 (1 day)

    "telegram": {
        "token": "9999999999:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", # telegram bot token
        "chat_id": "999999999" # telegram chat id
    },

    "instagram": [
        {
            "username": "bisguzar", # username, required

            "interval": 5, # interval for this watcher as seconds
                           # if not defined it uses general interval

            "only_if_changed": false, # not required
                                      # if false it will report you if no changes
                                      # default is true

            "ignored_metrics": ["profile_photo"] # not required, 
                                                 # it will ignore this metrics even is changed
        },
        {...another instagram watcher...},
        {...another instagram watcher...}
    ],

    "twitter": [
        {
            "username": "bugraisguzar", # username, required

            "interval": 30, # interval for this watcher as seconds
                            # if not defined it uses general interval

            "only_if_changed": false, # not required
                                      # if false it will report you if no changes
                                      # default is true

            "ignored_metrics": ["likes"] # not required, 
                                                 # it will ignore this metrics even is changed
        },
        {...another twitter watcher...},
        {...another twitter watcher...}
    ]
}

为social-watcher做出贡献

要为twitter-scraper做出贡献,请按照以下步骤操作

  1. 分支此存储库。
  2. 创建一个具有清晰名称的分支: git checkout -b <branch_name>
  3. 做出更改并将它们提交: git commit -m '<commit_message>'
  4. 推送到原始分支: git push origin <project_name>/<location>
  5. 创建拉取请求。

或者,请参阅GitHub关于创建拉取请求的文档。

贡献者

  • @bisguzar

联系

如果您想联系我,可以通过以下方式联系我:@bugraisguzar

许可协议

本项目使用的许可证如下:MIT

项目详情


下载文件

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

源码分发

social-watcher-0.1.0.tar.gz (8.1 kB 查看哈希值)

上传时间 源码

构建分发

social_watcher-0.1.0-py2.py3-none-any.whl (10.6 kB 查看哈希值)

上传时间 Python 2 Python 3

支持

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误记录StatusPageStatusPage状态页面