Last active
February 8, 2017 13:34
-
-
Save scambra/287321c56c7c8fe57704dead4b12268c to your computer and use it in GitHub Desktop.
definition for torrentz2 parsing html 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: torrentz2-html | |
name: Torrentz2-html | |
language: en-us | |
links: | |
- https://torrentz2.eu/ | |
caps: | |
categories: | |
"Video Tv": TV | |
"Video": Movies | |
"Video Movie HD": Movies/HD | |
modes: | |
search: [q] | |
tv-search: [q, season, ep] | |
search: | |
path: search | |
inputs: | |
f: "{{ .Query.Keywords }}" | |
rows: | |
selector: "html body #wrap .results dl" | |
fields: | |
title: | |
selector: dt a | |
download: | |
selector: dt a | |
attribute: href | |
category: | |
selector: dt | |
filters: | |
- name: regexp | |
args: "» (.*)" | |
date: | |
selector: dd span:nth-child(2) | |
filters: | |
- name: append | |
args: ' ago' | |
- name: timeago | |
size: | |
selector: dd span:nth-child(3) | |
seeders: | |
selector: dd span:nth-child(4) | |
leechers: | |
selector: dd span:nth-child(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment