Created
September 17, 2016 05:16
-
-
Save lxt2/0d0b414169309ea8c686286ca2fa20e7 to your computer and use it in GitHub Desktop.
An indexer definition for speed.cd for cardigann
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
site: speedcd | |
name: Speed.CD | |
language: en-us | |
links: | |
- https://??? | |
caps: | |
categories: | |
# TBD | |
modes: | |
tv-search: [q, season, ep] | |
login: | |
path: /login.php | |
form: form | |
inputs: | |
username: "{{ .Config.username }}" | |
password: "{{ .Config.password }}" | |
# error: | |
# - selector: h1:contains("Error:") | |
# message: | |
# selector: "#login p" | |
# remove: style, b | |
test: | |
path: /profile.php | |
search: | |
path: /browse.php | |
inputs: | |
search: "{{ .Query.Keywords }}" | |
rows: | |
selector: "#torrentTable .boxContent > table tbody tr" | |
fields: | |
category: | |
selector: td:nth-child(1) > a:nth-child(1) | |
attribute: href | |
filters: | |
- name: querystring | |
args: cat | |
# title: | |
# selector: a.torrent_name_link | |
# attribute: title | |
# details: | |
# selector: a.torrent_name_link | |
# attribute: href | |
# comments: | |
# selector: a.torrent_name_link | |
# attribute: href | |
# download: | |
# selector: td.table_links a:nth-child(1) | |
# attribute: href | |
# size: | |
# selector: td.table_size | |
# remove: br | |
# date: | |
# selector: td.table_added | |
# remove: br | |
# filters: | |
# - name: reltime | |
# args: 02-Jan-2006 | |
# - name: dateparse | |
# args: 02-Jan-2006 15:04:05 | |
# seeders: | |
# selector: td.table_seeders a span | |
# leechers: | |
# selector: td.table_leechers a | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok the login now works should be
Now the output of test comes out like this
I am lost here on how to organize the search yaml