定制 wersas1/tcrawl 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wersas1/tcrawl

Composer 安装命令:

composer require wersas1/tcrawl

包简介

scrapping all data and information public channels telegram & create object from scrapping with template

README 文档

README

Software License

Packagist Version

requirements

  • PHP v7.2 or above
  • Laravel v5.5 or above

Installation

composer require mfarahani/tcrawl

Documentation

Baseic

find information and last message from public channel telegram

$tCrawl = new TCrawler();
$tCrawl->setProxy("http://username:password@host:port");
$tCrawl->setChannel("channelname telegram");
$info           = $tCrawl->crawler()->getInfo();

$formWithTemplate = false; //you can use 'true' or 'false' for generate template

$lastMessgae    = $tCrawl->crawler()->getLastMessage($formWithTemplate);
$latestMessages = $tCrawl->crawler()->getLatestMessages($formWithTemplate, $fromId);


dump($info , $lastMessgae , $latestMessages );

Create Template output

you can set template and generate message with your template

  • Specify your template by inserting it between the [[***]]

example template :

$template = "phone number is : [[phone]] , name : [[name]]"
$tCrawl = new TCrawler();
$tCrawl->setProxy("http://username:password@host:port");
$tCrawl->setChannel("channelname telegram");

$info           = $tCrawl->crawler()->getInfo();

$tCrawl->templateBuilder()->createTemplate($info, $template);
$tCrawl->templateBuilder()->updateTemplate("channelname telegram", $template , $status);
$tCrawl->templateBuilder()->getTemplate("channelname telegram");

$tCrawl->templateBuilder()->build($username, $message);

Contributing

Thank you for considering contributing to the TC Package!

License

The Laravel framework is open-source software licensed under the MIT license.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0-only
  • 更新时间: 2023-06-27