Skip to content

Instantly share code, notes, and snippets.

@mmarquezs
Created October 6, 2016 18:25
Show Gist options
  • Save mmarquezs/5a2b85d84f3376b959aeb6f73afb16b4 to your computer and use it in GitHub Desktop.
Save mmarquezs/5a2b85d84f3376b959aeb6f73afb16b4 to your computer and use it in GitHub Desktop.
---
site: torrentbytes
name: TorrentBytes
language: en-us
links:
- http://www.torrentbytes.net/
caps:
# categories:
# 402: TV #TV Series
# 403: TV #TV Shows
# 410: Movies/HD #FullHD
# 410: TV/HD #FullHD
# 411: Movies/HD #HD
# 411: TV/HD #HD
# 413: Movies/HD #HDTV
# 413: TV/HD #HDTV
# 401: Movies/HD #BluRay
# 401: TV/HD #BluRay
# 414: TV/SD #DVD
# 414: Movies/DVD #DVD
# 415: Movies/BluRay #Movies/TV Remux
# 416: Movies/3D
# 412: TV/WEB-DL #Web-dl
# 412: Movies/WEBDL #Web-dl
# 417: TV/OTHER #iPad
# 417: Movies/Other #iPad
# 404: TV/Documentary
# 405: TV/Anime
# 406: Audio/Video #Music Videos
# 407: TV/Sport
# 409: Other/Misc
# 408: Audio/Lossless
modes:
search: [q]
tv-search: [q, season, ep]
login:
path: /login.php
method: form
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
path: /takelogin.php
message:
selector: td.text
test:
path: /inbox.php
search:
path: /browse.php
inputs:
$raw: "search={{ .Query.Keywords }}"
# $raw: "{{range .Categories}}filter_cat[]={{.}}&{{end}}searchstr={{ .Query.Keywords }}"
rows:
selector: html body div#innerwrapper div#mainframe div#content div table:nth-of-type(2) tbody tr:not(:first-child)
fields:
category:
selector: td:nth-child(1) > a:nth-child(1)
attribute: href
filters:
- name: regexp
args: "browse\\.php\\?cat=(\\d+)"
title:
selector: td:nth-child(2) a:nth-child(2)
details:
selector: td:nth-child(2) a:nth-child(2)
attribute: href
download:
selector: td:nth-child(2) a
attribute: href
size:
selector: td:nth-child(7)
date:
selector: td:nth-child(5)
seeders:
selector: td:nth-child(9)
leechers:
selector: td:nth-child(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment