",
22 | new Regex("
(.+?)", RegexOptions.Compiled),
23 | new Regex("/xiangxi/(.+?)\"", RegexOptions.Compiled),
24 | new Regex("种子大小[\\D]+\\>\\s*(\\d[^\\<]+)", RegexOptions.Compiled))
25 | {
26 |
27 | }
28 |
29 | protected override async Task
GetResultAsync(string part)
30 | {
31 | Result result = await base.GetResultAsync(part).ConfigureAwait(false);
32 | if (result == null) return null;
33 |
34 | result.Name = result.Name.Replace("", "").Replace("", "");
35 | return result;
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Searcher/WebSearcher/CilimaoWebSearcher.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Text.RegularExpressions;
6 | using System.Threading.Tasks;
7 |
8 | namespace MagnetX.Searcher.WebSearcher
9 | {
10 | [SearcherEnabled]
11 | class CilimaoWebSearcher : SimpleWebSearcher
12 | {
13 | protected override async Task GetURLAsync(string word, int page)
14 | {
15 | string name = Uri.EscapeUriString(word);
16 | return "https://www.cilimao.me/search?word=" + name + "&sortProperties=download_count&page=" + page;
17 | }
18 |
19 | public CilimaoWebSearcher()
20 | : base("cilimao.me", "(.+?)", RegexOptions.Compiled),
22 | new Regex("href=\"/information/(.+?)\\?", RegexOptions.Compiled),
23 | new Regex("文件大小.+?-->(.+?)