diff --git a/pt.json b/pt.json index 3f7aff3..4c250d9 100644 --- a/pt.json +++ b/pt.json @@ -6398,6 +6398,164 @@ "hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]" } }, +{ + "model": "pt_site.site", + "pk": 95, + "fields": { + "created_at": "2022-12-26T11:44:05.766", + "updated_at": "2022-12-26T12:05:37.048", + "url": "https://cinemaz.to/", + "name": "Cinemaz", + "logo": "https://cinemaz.to/images/cinemaz-favicon.png", + "tracker": "tracker.cinemaz.to", + "sign_in_support": false, + "get_torrent_support": true, + "get_userinfo_support": true, + "search_support": false, + "page_default": "torrents.php", + "page_sign_in": "attendance.php", + "page_control_panel": "usercp.php", + "page_detail": "details.php?id={}", + "page_download": "download.php?id={}", + "page_user": "profile/{}", + "page_search": "torrents.php?search={}", + "page_leeching": "getusertorrentlistajax.php?userid={}&type=leeching", + "page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded", + "page_seeding": "profile/{}/active", + "page_completed": "getusertorrentlistajax.php?userid={}&type=completed", + "page_mybonus": "profile/{}/bonus", + "page_viewfilelist": "viewfilelist.php?id={}", + "page_viewpeerlist": "viewpeerlist.php?id={}", + "sign_in_method": "get", + "sign_in_captcha": false, + "sign_in_params": "{}", + "sign_in_headers": "{}", + "hr": false, + "hr_rate": 2, + "hr_time": 10, + "sp_full": 100.0, + "limit_speed": 100, + "torrents_rule": "//table[@class=\"torrents\"]/tr", + "name_rule": ".//td[@class=\"embedded\"]/a/b/text()", + "title_rule": ".//a[contains(@href,\"detail\")]/parent::td/text()[last()]", + "detail_url_rule": ".//td[@class=\"embedded\"]/a[contains(@href,\"detail\")]/@href", + "category_rule": ".//td[@class=\"rowfollow nowrap\"][1]/a[1]/img/@title", + "poster_rule": ".//table/tr/td[1]/img/@src", + "magnet_url_rule": ".//td/a[contains(@href,\"download.php?id=\")]/@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_rule": ".//img[contains(@class,\"free\")]/@alt", + "sale_expire_rule": ".//img[contains(@class,\"free\")]/following-sibling::font/span/@title", + "release_rule": ".//td[4]/span/@title", + "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[7]/nobr/text()", + "remark": "", + "invitation_rule": "//td[contains(text(),\"Invites\")]/following-sibling::td/text()", + "time_join_rule": "//td[contains(text(),\"Joined\")]/following-sibling::td/text()", + "latest_active_rule": "//td[contains(text(), \"Last Access\")]/following-sibling::td/text()", + "uploaded_rule": "//td[text()=\"Uploaded\"]/following-sibling::td/text()", + "downloaded_rule": "//td[text()=\"Downloaded\"]/following-sibling::td/text()", + "ratio_rule": "//td[text()=\"Ratio\"]/following-sibling::td/text()", + "my_sp_rule": "//a[text()=\"Bonus:\"]/following-sibling::text()", + "hour_sp_rule": "//h3/strong/text()", + "my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]", + "my_level_rule": "//td[text()=\"Rank\"]/following-sibling::td/span/text()", + "my_passkey_rule": "//span[@class=\"text-monospace\"]/text()", + "my_uid_rule": "//a/span[@class=\"user-group group-member\"]/text()", + "my_hr_rule": "//a[@title=\"Hit and Run Torrents\"]/following-sibling::text()", + "leech_rule": "//a[text()=\"Leeching:\"]/following-sibling::text()", + "seed_rule": "//a[text()=\"Seeding:\"]/following-sibling::text()", + "record_count_rule": ".//td[3]/text()", + "seed_vol_rule": "//span[@class=\"movie-extra fa fa-database text-orange\"]/text()", + "mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]", + "notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]", + "hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]" + } +}, +{ + "model": "pt_site.site", + "pk": 96, + "fields": { + "created_at": "2022-12-26T12:12:22.433", + "updated_at": "2022-12-26T12:16:26.847", + "url": "https://avistaz.to/", + "name": "Avistaz", + "logo": "https://avistaz.to/images/avistaz-favicon.png", + "tracker": "tracker.avistaz.to", + "sign_in_support": false, + "get_torrent_support": true, + "get_userinfo_support": true, + "search_support": false, + "page_default": "torrents.php", + "page_sign_in": "attendance.php", + "page_control_panel": "usercp.php", + "page_detail": "details.php?id={}", + "page_download": "download.php?id={}", + "page_user": "profile/{}", + "page_search": "torrents.php?search={}", + "page_leeching": "getusertorrentlistajax.php?userid={}&type=leeching", + "page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded", + "page_seeding": "profile/{}/active", + "page_completed": "getusertorrentlistajax.php?userid={}&type=completed", + "page_mybonus": "profile/{}/bonus", + "page_viewfilelist": "viewfilelist.php?id={}", + "page_viewpeerlist": "viewpeerlist.php?id={}", + "sign_in_method": "get", + "sign_in_captcha": false, + "sign_in_params": "{}", + "sign_in_headers": "{}", + "hr": false, + "hr_rate": 2, + "hr_time": 10, + "sp_full": 100.0, + "limit_speed": 100, + "torrents_rule": "//table[@class=\"torrents\"]/tr", + "name_rule": ".//td[@class=\"embedded\"]/a/b/text()", + "title_rule": ".//a[contains(@href,\"detail\")]/parent::td/text()[last()]", + "detail_url_rule": ".//td[@class=\"embedded\"]/a[contains(@href,\"detail\")]/@href", + "category_rule": ".//td[@class=\"rowfollow nowrap\"][1]/a[1]/img/@title", + "poster_rule": ".//table/tr/td[1]/img/@src", + "magnet_url_rule": ".//td/a[contains(@href,\"download.php?id=\")]/@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_rule": ".//img[contains(@class,\"free\")]/@alt", + "sale_expire_rule": ".//img[contains(@class,\"free\")]/following-sibling::font/span/@title", + "release_rule": ".//td[4]/span/@title", + "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[7]/nobr/text()", + "remark": "", + "invitation_rule": "//td[contains(text(),\"Invites\")]/following-sibling::td/text()", + "time_join_rule": "//td[contains(text(),\"Joined\")]/following-sibling::td/text()", + "latest_active_rule": "//td[contains(text(), \"Last Access\")]/following-sibling::td/text()", + "uploaded_rule": "//td[text()=\"Uploaded\"]/following-sibling::td/text()", + "downloaded_rule": "//td[text()=\"Downloaded\"]/following-sibling::td/text()", + "ratio_rule": "//td[text()=\"Ratio\"]/following-sibling::td/text()", + "my_sp_rule": "//a[text()=\"Bonus:\"]/following-sibling::text()", + "hour_sp_rule": "//h3/strong/text()", + "my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]", + "my_level_rule": "//td[text()=\"Rank\"]/following-sibling::td/span/text()", + "my_passkey_rule": "//span[@class=\"text-monospace\"]/text()", + "my_uid_rule": "//a/span[@class=\"user-group group-member\"]/text()", + "my_hr_rule": "//a[@title=\"Hit and Run Torrents\"]/following-sibling::text()", + "leech_rule": "//a[text()=\"Leeching:\"]/following-sibling::text()", + "seed_rule": "//a[text()=\"Seeding:\"]/following-sibling::text()", + "record_count_rule": ".//td[3]/text()", + "seed_vol_rule": "//span[@class=\"movie-extra fa fa-database text-orange\"]/text()", + "mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]", + "notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]", + "hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]" + } +}, { "model": "auto_pt.task", "pk": 1, diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index ad64a4c..5b13ce7 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -1755,7 +1755,11 @@ class PtSpider: if 'iptorrents.com' in site.url: vol = ''.join(seed_vol.xpath('.//text()')) vol = ''.join(re.findall(r'\((.*?)\)', vol)) - if 'exoticaz.to' in site.url: + if site.url in [ + 'https://exoticaz.to/', + 'https://cinemaz.to/', + 'https://avistaz.to/', + ]: if ''.join(seed_vol) == '\n': continue vol = ''.join(seed_vol).strip() @@ -1829,7 +1833,11 @@ class PtSpider: elif 'hd-torrents.org' in site.url: time_join = datetime.strptime(''.join(details_html.xpath(site.time_join_rule)), '%d/%m/%Y %H:%M:%S') my_site.time_join = time_join - elif 'exoticaz.to' in site.url: + elif site.url in [ + 'https://exoticaz.to/', + 'https://cinemaz.to/', + 'https://avistaz.to/', + ]: time_str = ''.join(details_html.xpath(site.time_join_rule)).split('(')[0].strip() time_join = datetime.strptime(time_str, '%d %b %Y %I:%M %p') my_site.time_join = time_join @@ -2027,9 +2035,10 @@ class PtSpider: site = my_site.site url = site.url + site.page_mybonus if site.url in [ - 'https://exoticaz.to/', 'https://monikadesign.uk/', + 'https://exoticaz.to/', 'https://cinemaz.to/', + 'https://avistaz.to/', ]: url = url.format(my_site.user_id) logger.info(f'魔力页面链接:{url}') diff --git a/pt_site_site.json b/pt_site_site.json index 6707ee3..4c465b1 100644 --- a/pt_site_site.json +++ b/pt_site_site.json @@ -6154,5 +6154,157 @@ "my_uid_rule": "//a/span[@class=\"user-group group-member\"]/text()", "page_control_panel": "usercp.php", "tracker": "tracker.exoticaz.to" + }, + { + "id": 95, + "created_at": "2022-12-26 11:44:05.766041", + "updated_at": "2022-12-26 12:05:37.048730", + "name": "Cinemaz", + "url": "https://cinemaz.to/", + "logo": "https://cinemaz.to/images/cinemaz-favicon.png", + "sign_in_support": 0, + "get_torrent_support": 1, + "get_userinfo_support": 1, + "search_support": 0, + "page_default": "torrents.php", + "page_sign_in": "attendance.php", + "page_detail": "details.php?id={}", + "page_download": "download.php?id={}", + "page_user": "profile/{}", + "page_search": "torrents.php?search={}", + "page_leeching": "getusertorrentlistajax.php?userid={}&type=leeching", + "page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded", + "page_seeding": "profile/{}/active", + "page_completed": "getusertorrentlistajax.php?userid={}&type=completed", + "page_mybonus": "profile/{}/bonus", + "page_viewfilelist": "viewfilelist.php?id={}", + "page_viewpeerlist": "viewpeerlist.php?id={}", + "sign_in_method": "get", + "sign_in_captcha": 0, + "sign_in_params": "{}", + "sign_in_headers": "{}", + "hr": 0, + "hr_rate": 2, + "hr_time": 10, + "sp_full": 100, + "limit_speed": 100, + "torrents_rule": "//table[@class=\"torrents\"]/tr", + "name_rule": ".//td[@class=\"embedded\"]/a/b/text()", + "title_rule": ".//a[contains(@href,\"detail\")]/parent::td/text()[last()]", + "detail_url_rule": ".//td[@class=\"embedded\"]/a[contains(@href,\"detail\")]/@href", + "category_rule": ".//td[@class=\"rowfollow nowrap\"][1]/a[1]/img/@title", + "poster_rule": ".//table/tr/td[1]/img/@src", + "magnet_url_rule": ".//td/a[contains(@href,\"download.php?id=\")]/@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_rule": ".//img[contains(@class,\"free\")]/@alt", + "sale_expire_rule": ".//img[contains(@class,\"free\")]/following-sibling::font/span/@title", + "release_rule": ".//td[4]/span/@title", + "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[7]/nobr/text()", + "remark": "", + "invitation_rule": "//td[contains(text(),\"Invites\")]/following-sibling::td/text()", + "time_join_rule": "//td[contains(text(),\"Joined\")]/following-sibling::td/text()", + "latest_active_rule": "//td[contains(text(), \"Last Access\")]/following-sibling::td/text()", + "uploaded_rule": "//td[text()=\"Uploaded\"]/following-sibling::td/text()", + "downloaded_rule": "//td[text()=\"Downloaded\"]/following-sibling::td/text()", + "ratio_rule": "//td[text()=\"Ratio\"]/following-sibling::td/text()", + "my_sp_rule": "//a[text()=\"Bonus:\"]/following-sibling::text()", + "hour_sp_rule": "//h3/strong/text()", + "my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]", + "my_level_rule": "//td[text()=\"Rank\"]/following-sibling::td/span/text()", + "my_hr_rule": "//a[@title=\"Hit and Run Torrents\"]/following-sibling::text()", + "leech_rule": "//a[text()=\"Leeching:\"]/following-sibling::text()", + "seed_rule": "//a[text()=\"Seeding:\"]/following-sibling::text()", + "record_count_rule": ".//td[3]/text()", + "seed_vol_rule": "//span[@class=\"movie-extra fa fa-database text-orange\"]/text()", + "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]", + "my_passkey_rule": "//span[@class=\"text-monospace\"]/text()", + "my_uid_rule": "//a/span[@class=\"user-group group-member\"]/text()", + "page_control_panel": "usercp.php", + "tracker": "tracker.cinemaz.to" + }, + { + "id": 96, + "created_at": "2022-12-26 12:12:22.433872", + "updated_at": "2022-12-26 12:16:26.847745", + "name": "Avistaz", + "url": "https://avistaz.to/", + "logo": "https://avistaz.to/images/avistaz-favicon.png", + "sign_in_support": 0, + "get_torrent_support": 1, + "get_userinfo_support": 1, + "search_support": 0, + "page_default": "torrents.php", + "page_sign_in": "attendance.php", + "page_detail": "details.php?id={}", + "page_download": "download.php?id={}", + "page_user": "profile/{}", + "page_search": "torrents.php?search={}", + "page_leeching": "getusertorrentlistajax.php?userid={}&type=leeching", + "page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded", + "page_seeding": "profile/{}/active", + "page_completed": "getusertorrentlistajax.php?userid={}&type=completed", + "page_mybonus": "profile/{}/bonus", + "page_viewfilelist": "viewfilelist.php?id={}", + "page_viewpeerlist": "viewpeerlist.php?id={}", + "sign_in_method": "get", + "sign_in_captcha": 0, + "sign_in_params": "{}", + "sign_in_headers": "{}", + "hr": 0, + "hr_rate": 2, + "hr_time": 10, + "sp_full": 100, + "limit_speed": 100, + "torrents_rule": "//table[@class=\"torrents\"]/tr", + "name_rule": ".//td[@class=\"embedded\"]/a/b/text()", + "title_rule": ".//a[contains(@href,\"detail\")]/parent::td/text()[last()]", + "detail_url_rule": ".//td[@class=\"embedded\"]/a[contains(@href,\"detail\")]/@href", + "category_rule": ".//td[@class=\"rowfollow nowrap\"][1]/a[1]/img/@title", + "poster_rule": ".//table/tr/td[1]/img/@src", + "magnet_url_rule": ".//td/a[contains(@href,\"download.php?id=\")]/@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_rule": ".//img[contains(@class,\"free\")]/@alt", + "sale_expire_rule": ".//img[contains(@class,\"free\")]/following-sibling::font/span/@title", + "release_rule": ".//td[4]/span/@title", + "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[7]/nobr/text()", + "remark": "", + "invitation_rule": "//td[contains(text(),\"Invites\")]/following-sibling::td/text()", + "time_join_rule": "//td[contains(text(),\"Joined\")]/following-sibling::td/text()", + "latest_active_rule": "//td[contains(text(), \"Last Access\")]/following-sibling::td/text()", + "uploaded_rule": "//td[text()=\"Uploaded\"]/following-sibling::td/text()", + "downloaded_rule": "//td[text()=\"Downloaded\"]/following-sibling::td/text()", + "ratio_rule": "//td[text()=\"Ratio\"]/following-sibling::td/text()", + "my_sp_rule": "//a[text()=\"Bonus:\"]/following-sibling::text()", + "hour_sp_rule": "//h3/strong/text()", + "my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]", + "my_level_rule": "//td[text()=\"Rank\"]/following-sibling::td/span/text()", + "my_hr_rule": "//a[@title=\"Hit and Run Torrents\"]/following-sibling::text()", + "leech_rule": "//a[text()=\"Leeching:\"]/following-sibling::text()", + "seed_rule": "//a[text()=\"Seeding:\"]/following-sibling::text()", + "record_count_rule": ".//td[3]/text()", + "seed_vol_rule": "//span[@class=\"movie-extra fa fa-database text-orange\"]/text()", + "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]", + "my_passkey_rule": "//span[@class=\"text-monospace\"]/text()", + "my_uid_rule": "//a/span[@class=\"user-group group-member\"]/text()", + "page_control_panel": "usercp.php", + "tracker": "tracker.avistaz.to" } ] \ No newline at end of file