1. 更新部分站点信息与种子获取规则

2. 增加JOYHD、U2、TTG等站点规则适配
This commit is contained in:
ngfchl
2022-09-20 15:13:47 +08:00
parent 64fc7f3018
commit 7d517a957f
3 changed files with 173 additions and 3851 deletions

View File

@@ -1 +1 @@
python manage.py dumpdata django_apscheduler pt_site.site auto_pt.task auto_pt.taskjob --indent 2 -o pt.json
python manage.py dumpdata django_apscheduler.djangojob pt_site.site auto_pt.task auto_pt.taskjob --indent 2 -o pt.json

View File

@@ -152,7 +152,7 @@
{
"id": 3,
"created_at": "2022-07-17 10:24:59.754000",
"updated_at": "2022-09-15 01:53:19.599000",
"updated_at": "2022-09-20 12:51:45.624521",
"name": "BT学校",
"url": "https://pt.btschool.club/",
"logo": "favicon.ico",
@@ -1127,10 +1127,10 @@
{
"id": 19,
"created_at": "2022-07-20 11:03:57.583000",
"updated_at": "2022-09-14 15:59:12.913000",
"updated_at": "2022-09-20 13:17:23.216293",
"name": "时间",
"url": "https://www.pttime.org/",
"logo": "favicon.ico",
"logo": "http://favicon.ico",
"sign_in_support": 1,
"get_torrent_support": 1,
"get_userinfo_support": 1,
@@ -1165,13 +1165,13 @@
"poster_rule": ".//table/tr/td[1]/img/@src",
"magnet_url_rule": ".//a[contains(@href,\"download\")]/@href",
"download_url_rule": ".//a[contains(@href,\"download.php?id=\") and contains(@href,\"passkey\")]/@href",
"size_rule": "./td[6]/text()",
"size_rule": ".//td[6]/text()",
"hr_rule": ".//table/tr/td/img[@class=\"hitandrun\"]/@title",
"sale_expire_rule": ".//td[@class=\"embedded\"]/span/@title",
"sale_expire_rule": ".//font[contains(@class,\"free\")]/following-sibling::span[1]/@title",
"release_rule": ".//td[@class=\"rowfollow nowrap\"]/span/@title",
"seeders_rule": ".//td[@class=\"rowfollow\"][5]/b/a/text()",
"leechers_rule": ".//td[@class=\"rowfollow\"][6]/b/a/text()",
"completers_rule": ".//td[@class=\"rowfollow\"][7]/a/b/text()",
"seeders_rule": ".//a[contains(@href,\"#seeders\")]//text()",
"leechers_rule": ".//a[contains(@href,\"#leechers\")]//text()",
"completers_rule": ".//a[contains(@href,\"viewsnatches\")]//text()",
"viewfilelist_rule": ".//td/text()",
"viewpeerlist_rule": ".//tr/td[9]/nobr/text()",
"peer_speed_rule": ".//tr/td[5]/nobr/text()",
@@ -1197,7 +1197,7 @@
"my_passkey_rule": "//td[contains(text(),\"密钥\")]/following-sibling::td[1]/text()",
"my_uid_rule": "//a[contains(@class,\"_Name\") and contains(@href,\"userdetails.php?id=\")]/@href",
"page_control_panel": "usercp.php",
"sale_rule": ".//td[@class=\"embedded\"]/font[contains(@class,\"promotion\") and not(contains(@class,\"b4\"))][1]/text()"
"sale_rule": ".//font[contains(@class,\"free\")]/text()"
},
{
"id": 20,
@@ -2702,7 +2702,7 @@
{
"id": 42,
"created_at": "2022-08-18 00:46:55.688000",
"updated_at": "2022-09-14 15:59:20.195000",
"updated_at": "2022-09-20 13:24:16.003720",
"name": "HD城市",
"url": "https://hdcity.city/",
"logo": "http://favicon.ico",
@@ -2743,7 +2743,7 @@
"size_rule": ".//div[@class=\"trl\"]/i/following-sibling::text()[1]",
"hr_rule": ".//table/tr/td/img[@class=\"hitandrun\"]/@title",
"sale_expire_rule": ".//table/tr/td/font/span/@title",
"release_rule": "./div[@class=\"trtop\"]/div/text()",
"release_rule": ".//div[@class=\"trtop\"]/div/text()",
"seeders_rule": ".//a[contains(@href,\"dllist=1#seeders\")]/font/text()",
"leechers_rule": ".//a[contains(@href,\"dllist=1#leechers\")]/text()",
"completers_rule": ".//a[contains(@href,\"viewsnatches?id=\")]/text()",
@@ -2767,12 +2767,12 @@
"record_count_rule": "/html/body/b/text()",
"seed_vol_rule": "//tr/td[3]",
"mailbox_rule": "//li/a/i[@id=\"rmsg\"]/following::text()[1]",
"hash_rule": "//div[@class=\"blockcontent\"]/b[text()=\"Hash 值:\"]/following-sibling::text()",
"hash_rule": "//b[text()=\"Hash 值:\"]/following-sibling::text()",
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",
"my_passkey_rule": "//td[contains(text(),\"密钥\")]/following-sibling::td[1]/text()",
"my_uid_rule": "//a[contains(@class,\"_Name\") and contains(@href,\"userdetails.php?id=\")]/@href",
"page_control_panel": "usercp.php",
"sale_rule": "./div[@class=\"trm\"]/div[@class=\"trbo\"]/div/img/@class"
"sale_rule": ".//img[contains(@class,\"free\")]/@alt"
},
{
"id": 43,
@@ -2927,13 +2927,13 @@
{
"id": 45,
"created_at": "2022-08-26 20:52:18.452000",
"updated_at": "2022-09-16 15:12:14.456297",
"updated_at": "2022-09-20 14:41:22.003264",
"name": "U2",
"url": "https://u2.dmhy.org/",
"logo": "http://favor.ico",
"sign_in_support": 0,
"get_torrent_support": 0,
"get_userinfo_support": 0,
"get_torrent_support": 1,
"get_userinfo_support": 1,
"search_support": 0,
"page_default": "torrents.php",
"page_sign_in": "attendance.php",
@@ -2945,7 +2945,7 @@
"page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded",
"page_seeding": "getusertorrentlistajax.php?userid={}&type=seeding",
"page_completed": "getusertorrentlistajax.php?userid={}&type=completed",
"page_mybonus": "mybonus.php",
"page_mybonus": "mprecent.php",
"page_viewfilelist": "viewfilelist.php?id={}",
"page_viewpeerlist": "viewpeerlist.php?id={}",
"sign_in_method": "get",
@@ -2976,19 +2976,19 @@
"viewpeerlist_rule": ".//tr/td[9]/nobr/text()",
"peer_speed_rule": ".//tr/td[5]/nobr/text()",
"remark": "",
"invitation_rule": "//a[contains(@href,\"invite.php?id=\")]/following-sibling::text()[1]",
"invitation_rule": "//span/a[contains(@href,\"invite.php?id=\")]/following-sibling::text()[1]",
"time_join_rule": "//td[contains(text(),\"加入\")]/following-sibling::td/span/@title",
"latest_active_rule": "//td[contains(text(),\"最近动向\")]/following-sibling::td/span/@title",
"uploaded_rule": "//font[@class=\"color_uploaded\"]/following-sibling::text()[1]",
"downloaded_rule": "//font[@class=\"color_downloaded\"]/following-sibling::text()[1]",
"ratio_rule": "//font[@class=\"color_ratio\"][1]/following-sibling::text()[1]",
"my_sp_rule": "//a[@href=\"mybonus.php\"]/following-sibling::text()[1]",
"hour_sp_rule": "//div[contains(text(),\"每小时能获取\")]/text()[1]",
"uploaded_rule": "//span[@class=\"color_uploaded\"]/following-sibling::text()[1]",
"downloaded_rule": "//span[@class=\"color_downloaded\"]/following-sibling::text()[1]",
"ratio_rule": "//span[contains(text(),\"分享率\")][1]/following-sibling::text()[1]",
"my_sp_rule": "//a[@href=\"ucoin.php\"]/following-sibling::span[1]//text()",
"hour_sp_rule": "//td[@id=\"outer\"]//td[@class=\"text\"]/text()",
"my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]",
"my_level_rule": "//span[@class=\"medium\"]/span[@class=\"nowrap\"]/a[contains(@class,\"_Name\")]/@class",
"my_level_rule": "//img[contains(@src,\"user\")]/@src",
"my_hr_rule": "//tr[14]/td[2]/a/text()",
"leech_rule": "//img[@class=\"arrowdown\"]/following-sibling::text()[1]",
"seed_rule": "//img[@class=\"arrowup\"]/following-sibling::text()[1]",
"leech_rule": "//img[@class=\"arrowdown\"][1]/following-sibling::text()[1]",
"seed_rule": "//a[contains(@href,\"#seedlist\")]//text()",
"record_count_rule": "/html/body/b/text()",
"seed_vol_rule": "//tr/td[3]",
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
@@ -3002,13 +3002,13 @@
{
"id": 46,
"created_at": "2022-08-26 20:53:50.259000",
"updated_at": "2022-09-14 15:59:20.264000",
"updated_at": "2022-09-20 10:39:27.109242",
"name": "TTG",
"url": "https://totheglory.im/",
"logo": "http://favicon.ico",
"sign_in_support": 1,
"get_torrent_support": 0,
"get_userinfo_support": 0,
"get_torrent_support": 1,
"get_userinfo_support": 1,
"search_support": 0,
"page_default": "browse.php?c=M",
"page_sign_in": "signed.php",
@@ -3032,57 +3032,57 @@
"hr_time": 10,
"sp_full": 0,
"limit_speed": 100,
"torrents_rule": "//table[@class=\"torrents\"]/tr",
"name_rule": ".//td[@class=\"embedded\"]/a/b/text()",
"title_rule": ".//tr/td[1]/text()",
"detail_url_rule": ".//td[@class=\"embedded\"]/a[contains(@href,\"detail\")]/@href",
"category_rule": ".//td[@class=\"rowfollow nowrap\"][1]/a[1]/img/@class",
"torrents_rule": "//table[@id=\"torrent_table\"]/tr",
"name_rule": ".//div[@class=\"name_left\"]/a/b/text()[1]",
"title_rule": ".//div[@class=\"name_left\"]/a/b/span/text()",
"detail_url_rule": ".//div/a[contains(@href,\"/t/\")]/@href",
"category_rule": ".//img[contains(@src,\"cate\")]/@alt",
"poster_rule": ".//table/tr/td[1]/img/@src",
"magnet_url_rule": ".//td/a[contains(@href,\"download\")]/@href",
"download_url_rule": ".//a[contains(@href,\"download.php?id=\") and contains(@href,\"passkey\")]/@href",
"size_rule": ".//td[5]/text()",
"hr_rule": ".//table/tr/td/img[@class=\"hitandrun\"]/@title",
"sale_expire_rule": ".//table/tr/td/font/span/@title",
"release_rule": ".//td[4]/span/@title",
"seeders_rule": ".//td[6]/b/a/text()",
"leechers_rule": ".//td[7]/b/a/text()",
"completers_rule": ".//td[8]/a/b/text()",
"magnet_url_rule": ".//img[contains(@class,\"dl_img\")]/parent::a/@href",
"download_url_rule": "//a[contains(text(),\"点击复制\")]/@href",
"size_rule": ".//td[7]/text()",
"hr_rule": ".//img[@title=\"Hit and Run\"]",
"sale_expire_rule": ".//span/@onclick",
"release_rule": ".//td[5]//text()",
"seeders_rule": ".//a[contains(@href,\"&toseeders\")]//text()",
"leechers_rule": ".//a[contains(@href,\"&todlers\")]//text()",
"completers_rule": ".//td[8]/text()[1]",
"viewfilelist_rule": ".//td/text()",
"viewpeerlist_rule": ".//tr/td[9]/nobr/text()",
"peer_speed_rule": ".//tr/td[5]/nobr/text()",
"remark": "",
"invitation_rule": "//a[contains(@href,\"invite.php?id=\")]/following-sibling::text()[1]",
"time_join_rule": "//td[contains(text(),\"加入\")]/following-sibling::td/span/@title",
"latest_active_rule": "//td[contains(text(),\"最近动向\")]/following-sibling::td/span/@title",
"uploaded_rule": "//font[@class=\"color_uploaded\"]/following-sibling::text()[1]",
"downloaded_rule": "//font[@class=\"color_downloaded\"]/following-sibling::text()[1]",
"ratio_rule": "//font[@class=\"color_ratio\"][1]/following-sibling::text()[1]",
"my_sp_rule": "//a[@href=\"mybonus.php\"]/following-sibling::text()[1]",
"hour_sp_rule": "//div[contains(text(),\"每小时能获取\")]/text()[1]",
"my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]",
"my_level_rule": "//span[@class=\"medium\"]/span[@class=\"nowrap\"]/a[contains(@class,\"_Name\")]/@class",
"invitation_rule": "//a[contains(@href,\"invite.php\")]/span/text()[1]",
"time_join_rule": "//td[contains(text(),\"注册日期\")]/following-sibling::td[1]/text()",
"latest_active_rule": "//td[contains(text(),\"上次访问\")]/following-sibling::td[1]/text()",
"uploaded_rule": "//font[contains(text(),\"上传量\")]/following-sibling::font[1]/a/text()[1]",
"downloaded_rule": "//font[contains(text(),\"下载量\")]/following-sibling::font[1]/a/text()[1]",
"ratio_rule": "//font[contains(text(),\"分享率 \")][1]/following-sibling::font[1]/text()[1]",
"my_sp_rule": "//a[contains(@href,\"mybonus.php\")]/text()[1]",
"hour_sp_rule": "//td[contains(text(),\"总计\")]/following-sibling::td/text()",
"my_bonus_rule": "//font[contains(text(),\"HP\")]/following-sibling::text()[1]",
"my_level_rule": "//td[contains(text(),\"等级\")]/following-sibling::td/text()",
"my_hr_rule": "//tr[14]/td[2]/a/text()",
"leech_rule": "//img[@class=\"arrowdown\"]/following-sibling::text()[1]",
"seed_rule": "//img[@class=\"arrowup\"]/following-sibling::text()[1]",
"leech_rule": "//img[contains(@title,\"下载中\")]/following-sibling::font[1]/span/text()[1]",
"seed_rule": "//img[contains(@title,\"做种中\")]/following-sibling::font[1]/span/text()[1]",
"record_count_rule": "/html/body/b/text()",
"seed_vol_rule": "//tr/td[3]",
"seed_vol_rule": ".//tr/td[4]",
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
"hash_rule": "//tr[11]//td[@class=\"no_border_wide\"][2]/text()",
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",
"my_passkey_rule": "//td[contains(text(),\"密钥\")]/following-sibling::td[1]/text()",
"my_passkey_rule": "//td[contains(text(),\"Passkey\")]/following-sibling::td[1]/text()",
"my_uid_rule": "//a[contains(@class,\"_Name\") and contains(@href,\"userdetails.php?id=\")]/@href",
"page_control_panel": "usercp.php",
"sale_rule": ".//img[contains(@class,\"free\")]/@alt"
"sale_rule": ".//img[contains(@src,\"free\")]/@alt"
},
{
"id": 47,
"created_at": "2022-08-26 20:54:35.357000",
"updated_at": "2022-09-14 15:59:20.281000",
"updated_at": "2022-09-20 12:49:15.948867",
"name": "蝶粉",
"url": "https://discfan.net/",
"logo": "http://favicon.ico",
"sign_in_support": 1,
"get_torrent_support": 0,
"get_torrent_support": 1,
"get_userinfo_support": 1,
"search_support": 0,
"page_default": "torrents.php",
@@ -3152,13 +3152,13 @@
{
"id": 48,
"created_at": "2022-08-26 20:55:42.110000",
"updated_at": "2022-09-14 15:59:20.301000",
"updated_at": "2022-09-20 12:42:28.689254",
"name": "joyhd",
"url": "https://www.joyhd.net/",
"logo": "http://favicon.ico",
"sign_in_support": 0,
"get_torrent_support": 0,
"get_userinfo_support": 0,
"get_torrent_support": 1,
"get_userinfo_support": 1,
"search_support": 0,
"page_default": "torrents.php",
"page_sign_in": "attendance.php",
@@ -3207,7 +3207,7 @@
"uploaded_rule": "//font[@class=\"color_uploaded\"]/following-sibling::text()[1]",
"downloaded_rule": "//font[@class=\"color_downloaded\"]/following-sibling::text()[1]",
"ratio_rule": "//font[@class=\"color_ratio\"][1]/following-sibling::text()[1]",
"my_sp_rule": "//a[@href=\"mybonus.php\"]/following-sibling::text()[1]",
"my_sp_rule": "//a[@href=\"usebonus.php\"]/following-sibling::text()[1]",
"hour_sp_rule": "//div[contains(text(),\"每小时能获取\")]/text()[1]",
"my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]",
"my_level_rule": "//span[@class=\"medium\"]/span[@class=\"nowrap\"]/a[contains(@class,\"_Name\")]/@class",
@@ -3977,7 +3977,7 @@
{
"id": 59,
"created_at": "2022-09-14 08:33:16.574000",
"updated_at": "2022-09-15 01:40:50.509000",
"updated_at": "2022-09-20 09:16:28.533510",
"name": "KamePT",
"url": "https://kamept.com/",
"logo": "https://kamept.com/favicon.ico",
@@ -4040,7 +4040,7 @@
"leech_rule": "//img[@class=\"arrowdown\"]/following-sibling::text()[1]",
"seed_rule": "//img[@class=\"arrowup\"]/following-sibling::text()[1]",
"record_count_rule": ".//td[3]/text()",
"seed_vol_rule": "//tr/td[3]",
"seed_vol_rule": "//tr/td[4]",
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
"hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]",
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",

3890
pt.json

File diff suppressed because it is too large Load Diff