metrixio/twitter
Composer 安装命令:
composer create-project metrixio/twitter
包简介
This tool lets you easily gather data about tweets, retweets, likes, followers, and more from Twitter. You can use it to track the performance of your own account or gather data for research or analysis. It works with Prometheus and Grafana.
README 文档
README
This tool lets you easily gather data about tweets, retweets, likes, followers, and more from Twitter. You can use it to track the performance of your own account or gather data for research or analysis.
It works with Prometheus and Grafana to collect data from Twitter, store it in Prometheus, and create visualizations with Grafana. You can use Grafana to customize the data you collect and create dashboards that fit your needs.
We hope you find it helpful!
Usage
To get started with this package, you'll need to have a Twitter developer account and create Twitter API credentials. Once you have those, you can begin collecting metrics data from Twitter.
It's a simple process that can help you track the performance of your own account or gather data for research or analysis purposes.
Check out the documentation in the dashboard repository. That should give you all the details you need to get going.
# Twitter TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= TWITTER_ACCESS_TOKEN= TWITTER_ACCESS_TOKEN_SECRET= # Twitter account ids to follow (comma separated) TWITTER_ACCOUNTS=
Docker
version: "3.7" services: twitter-metrics: image: ghcr.io/metrixio/twitter:latest environment: TWITTER_CONSUMER_KEY:... TWITTER_CONSUMER_SECRET:... TWITTER_ACCESS_TOKEN:... TWITTER_ACCESS_TOKEN_SECRET:... TWITTER_ACCOUNTS:... restart: on-failure prometheus: image: prom/prometheus volumes: - ./runtime/prometheus:/prometheus restart: always grafana: image: grafana/grafana depends_on: - prometheus ports: - 3000:3000 volumes: - ./runtime/grafana:/var/lib/grafana restart: always
Local server
composer create-project metrixio/twitter
Define the repositories you want to track in .env file
# Twitter TWITTER_CONSUMER_KEY=xxx TWITTER_CONSUMER_SECRET=xxx TWITTER_ACCESS_TOKEN=xxx TWITTER_ACCESS_TOKEN_SECRET=xxx # Twitter account ids to follow (comma separated) TWITTER_ACCOUNTS=1234,123123
Once the project is installed and configured you can start application server:
./rr serve
Metrics will be available on http://127.0.0.1:2112.
Note: To fix unable to open metrics page, change metrics address in RoadRunner config file to
127.0.0.1:2112.
The package is built with some of the best tools out there for PHP. It's powered by Spiral Framework, which makes it super fast and efficient, and it uses RoadRunner as the server, which is a really great tool for collecting metrics data for Prometheus.
metrixio/twitter 适用场景与选型建议
metrixio/twitter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 12 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 metrixio/twitter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 metrixio/twitter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-26
