ericlagarda / axon
使用多个 torrent 站点的简单 torrent 搜索引擎
v0.1.5
2016-02-18 08:54 UTC
Requires
- php: >=5.4
- brianium/nomnom: ~1.0
- kriswallsmith/buzz: v0.10
- symfony/css-selector: ~3.0
- symfony/dom-crawler: ~2.4
- symfony/property-access: ~2.4
This package is auto-updated.
Last update: 2024-09-12 22:36:22 UTC
README
Axon 是一个用于通过简单的 API 搜索各种 torrent 追踪站点的库。
安装
当使用 Composer 时,安装非常简单
{ "require": { "kleiram/axon": "dev-master" } }
现在你已经设置好了!
使用方法
以下代码是使用 Axon 的示例
// Create a new Axon instance $axon = new Axon\Search(); // Add a couple of providers to the stack $axon->registerProvider(new Axon\Search\Provider\YifyProvider()); $axon->registerProvider(new Axon\Search\Provider\KickassProvider()); $axon->registerProvider(new Axon\Search\Provider\PirateBayProvider()); $axon->registerProvider(new Axon\Search\Provider\EztvProvider()); // Start searching! $torrents = $axon->search('Iron Man 3');
torrents 会自动通过哈希值过滤,因此重复的搜索结果非常罕见。
查看 lib/Axon/Search/Providers
目录以获取更多提供商。
支持的提供商
目前,以下追踪站被支持
- YIFY Torrents
- Kickass Torrents
- The Pirate Bay
- EZTV
- 并且正在开发更多!
变更日志
Version Changes
0.1.0 - Initial release
许可证
Copyright (c) 2014, Ramon Kleiss <ramonkleiss@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.