diff --git a/README.md b/README.md index 79852538e..ec655bfbb 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ $ cloud-torrent --help --host, -h Listening interface (default all) --auth, -a Optional basic auth in form 'user:password' (env AUTH) --config-path, -c Configuration file path (default cloud-torrent.json) + --config Search config file path --key-path, -k TLS Key file path --cert-path, -r TLS Certicate file path --log, -l Enable request logging diff --git a/scraper-config.json b/scraper-config.json new file mode 100644 index 000000000..5c81aecb7 --- /dev/null +++ b/scraper-config.json @@ -0,0 +1,110 @@ +{ + "eztv": { + "name": "EZTV", + "url": "https://eztv.ag/search/{{query}}", + "list": "table tr.forum_header_border", + "result": { + "name": "td:nth-child(2) a", + "url": ["td:nth-child(2) a", "@href"], + "magnet": ["td:nth-child(3) a:nth-child(1)", "@href"], + "size": "td:nth-child(4)", + "seeds": "td:nth-child(6)" + } + }, + "1337x": { + "name": "1337X", + "url": "http://1337x.to/sort-search/{{query}}/seeders/desc/{{page:1}}/", + "list": ".box-info-detail table.table tr", + "result": { + "name": [".coll-1 a:nth-child(2)"], + "url": [".coll-1 a:nth-child(2)", "@href"], + "seeds": ".coll-2", + "peers": ".coll-3", + "size": [".coll-4", "/([\\d\\.]+ [KMGT]?B)/"] + } + }, + "1337x/item": { + "name": "1337X (Item)", + "url": "http://1337x.to{{item}}", + "result": { + "magnet": ["a[href^='magnet:']", "@href"] + } + }, + "abb": { + "name": "The Audiobook Bay", + "url": "http://audiobookbay.nl/page/{{page:1}}?s={{query}}", + "list": "#content > .post", + "result": { + "name": ["div.postTitle > h2 > a"], + "url": ["div.postTitle > h2 > a", "@href"], + "size": ["div.postContent", "/File Size: ([\\d\\.]+ [KMGT]?B)/"] + } + }, + "abb/item": { + "name": "The Audiobook Bay (Item)", + "url": "http://audiobookbay.nl{{item}}", + "result": { + "infohash": "/td>([a-f0-9]+) tbody > tr", + "result": { + "name": "a.detLink", + "path": ["a.detLink", "@href"], + "magnet": [ + "a[title=Download\\ this\\ torrent\\ using\\ magnet]", + "@href" + ], + "size": "/Size (\\d+(\\.\\d+).[KMG]iB)/", + "seeds": "td:nth-child(3)", + "peers": "td:nth-child(4)" + } + }, + "nyaa": { + "name": "Nyaa", + "url": "https://nyaa.si/?f=0&c=0_0&s=seeders&o=desc&q={{query}}&p={{page:1}}", + "list": "table.torrent-list > tbody > tr", + "result": { + "name": ["td:nth-child(2) a:nth-child(2)", "@title"], + "path": ["td:nth-child(2) a:nth-child(2)", "@href"], + "magnet": ["a[href^='magnet:']", "@href"], + "size": "td:nth-child(4)", + "seeds": "td:nth-child(6)", + "peers": "td:nth-child(7)" + } + }, + "zhangyusousuo": { + "name": "章鱼搜索", + "url": "https://bt.zhangyusousuo.com/s/{{query}}/p/{{page:1}}.html", + "list": ".listitem:nth-child(n+3)", + "result": { + "name": "h2 > a", + "url": ["h2 > a", "@href"], + "size": ["/大小:(.*)