Advertisement
Guest User

Untitled

a guest
May 9th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.67 KB | None | 0 0
  1. ---
  2.   site: hdcenter
  3.   name: HD-Center
  4.   description: German HD Tracker
  5.   language: de-de
  6.   links:
  7.   - https://hdcenter.cc/
  8.  
  9.   caps:
  10.     categorymappings:
  11.       - {id: 1, cat: Movies, desc: "Movies HD"}
  12.       - {id: 2, cat: Movies, desc: "Movies 3D"}
  13.       - {id: 3, cat: TV, desc: "TV HD"}
  14.       - {id: 9, cat: Movies, desc: "Movies HD HDC"}
  15.       - {id: 10, cat: TV, desc: "TV HD TvR"}
  16.       - {id: 11, cat: Movies, desc "Movies HD 10 Bit"}
  17.       - {id: 13, cat: TV, desc: "TV HD NERDS"}
  18.  
  19.     modes:
  20.       search: [q]
  21.       tv-search: [q, season, ep]
  22.  
  23.   login:
  24.     path: /login.php
  25.     method: form
  26.     form: form
  27.     inputs:
  28.       username: "{{ .Config.username }}"
  29.       password: "{{ .Config.password }}"
  30.     error:
  31.       - selector: "#error-text"
  32.     test:
  33.       path: /index.php
  34.  
  35.  
  36.   ratio:
  37.     path: /index.php
  38.     selector: "#stats_ratio .stat > span"
  39.  
  40.   search:
  41.     path: /torrents.php
  42.     inputs:
  43.        $raw: "searchstr={{ .Query.Keywords }}&freetorrent=&order_by=time&order_way=desc"
  44.     rows:
  45.       selector: table#torrent_table tr.torrent
  46.     fields:
  47.       category:
  48.         selector: td.cats_col a
  49.         attribute: href
  50.         filters:
  51.           - name: regexp
  52.             args: \[([^]]+)\]
  53.       title:
  54.         selector: td.title_col .torrent_title_div a.torrent_link_title
  55.       download:
  56.         selector: td.title_col .tools a[title="download"]
  57.         attribute: href
  58.       size:
  59.         selector: td.size_col
  60.       date:
  61.         selector: td.time_col > .time
  62.         attribute: title # this contains the time since upload
  63.       seeders:
  64.         selector: td.seeder_col
  65.       leechers:
  66.         selector: td.leecher_col
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement