asaugrain / ygg_crawler
yggtorrent.com的简单爬虫
dev-master
2017-09-15 19:12 UTC
This package is not auto-updated.
Last update: 2024-09-29 04:42:54 UTC
README
YGG Crawler是一个库,允许您遍历和检索网站www.yggtorrent.com上的torrent文件
项目的目的是在T411网站关闭前,允许使用该网站API的开发者能够在新网站YggTorrent上检索torrent文件。
/!\ 注意,直接将库集成到您的应用中可能会带来风险。由于处于POC状态,您可能会遇到不稳定、缓慢、错误或其他安全漏洞。
功能
- 按关键词搜索
- 检索当前torrent文件
- 检索前一天torrent文件
- 检索当天torrent文件
使用示例
按关键词搜索torrent
$search = 'Game of thrones s07e02';
$ygg = new Ygg($search);
if ($ygg->login()) {
$ygg->searchTorrent();
// Handle result
} else {
echo 'Unable to login. Please check your credentials';
}
搜索类别为"Movies"的当前torrent
$category = 'movies';
$ygg = new Ygg();
if ($ygg->login()) {
$category_id = $ygg::getCategoryId($category);
$ygg->searchMoment($category_id);
// Handle result
} else {
echo 'Unable to login. Please check your credentials';
}
他们使用YGG Crawler
- Guisch : YGG RSS Feed generator (https://github.com/Guisch/YGG-rss-feed-generator)