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 | |
Ok the login now works should be
login:
path: /takeElogin.php
method: post
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: tbody:contains("File Not Found")
test:
path: /user/
Now the output of test comes out like this
<td class="typecol">
<div>
<div id="book932359" class="book" title="Bookmark" data-type="bok&id=932359">
<img src="/V3/img/.gif" class="icos heart"/>
</div>
<a id="2" href="?cat=2" class="cat">
<img border="0" class="Tcat c2" src="/V3/img/.gif" alt="TV/Episodes"/>
</a>
</div>
</td>
<td class="lft" colspan="2">
<div>
<a href="/t/932359" class="torrent" id="932359">
<b>
La Liga 2016 09 10 Sevilla vs Las Palmas 480p x264-mSD
</b>
</a>
<span class="nTag hO">
NEW!
</span>
<span class="date">
Uploaded
<span class="elapsedDate run" data-x="1474771123" title="Sunday, September 25, 2016 at 3:11am">
3 minutes ago
</span>
</span>
</div>
</td>
<td>
<a href="download.php?torrent=932359">
<img title="Download" alt="Download" src="/V3/img/.gif" class="icos save"/>
</a>
</td>
<td class="comment">
0
</td>
<td>
1.36
<br/>
GB
</td>
<td>
<b>
1
</b>
</td>
<td>
0
</td>
</tr>
I am lost here on how to organize the search yaml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe also the logs helps,
It thinks is already logged in, so i need to define better the error speed will output in case of test