Instantly share code, notes, and snippets.
Last active
February 6, 2017 14:06
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save juniorz/e3d2492f91603e4c392dd551d931aaa8 to your computer and use it in GitHub Desktop.
Cardigann definition for BJ Share
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: bjshare-grouped | |
name: BJ Share (w/ stupid grouping) | |
description: BJ Share tracker w/ grouped layout | |
language: pt-br | |
links: | |
- https://bj-share.me/ | |
caps: | |
categories: | |
1: Movies # Filmes | |
2: TV # Seriados | |
3: PC # Aplicativos | |
4: Console # Jogos | |
5: Audio # Musica | |
6: TV # Videos de TV | |
7: Other # Outros | |
8: Books # Apostilas / Tutoriais | |
9: Books/Magazines # Revistas | |
10: Books/Ebook # Ebooks | |
12: Books/Comics # Historias em Quadrinhos | |
13: TV # Standup Comedy | |
14: TV/Anime # Anime | |
16: TV # Desenho Animado | |
17: Audio/Video # Shows | |
18: TV/Documentary # Documentarios | |
19: Audio/Audiobook # Audiobook | |
20: TV/Sport # Esporte | |
modes: | |
search: [q] | |
tv-search: [q, season, ep] | |
login: | |
path: /login.php | |
method: post | |
inputs: | |
username: "{{ .Config.username }}" | |
password: "{{ .Config.password }}" | |
keeplogged: 1 | |
Login: Login | |
error: | |
- selector: form[id='loginform'] + div[id='msgsPublic'] | |
message: | |
selector: form[id='loginform'] + div[id='msgsPublic'] | |
remove: style, b, span | |
ratio: | |
path: /index.php | |
selector: ul[id='userinfo_stats'] li[id='stats_ratio'] span[class='stat'] span | |
attribute: title | |
filters: | |
- name: regexp | |
args: "^(.+)$" | |
search: | |
path: /torrents.php | |
inputs: | |
searchstr: "{{ .Keywords }}" | |
rows: | |
selector: table[id='torrent_table'] tbody tr.group ~ tr.group_torrent | |
fields: | |
title: | |
selector: td:nth-last-child(6) > a | |
description: | |
selector: td:nth-last-child(6) > a | |
filters: | |
- name: split | |
args: [ "\n", -1 ] | |
- name: trim | |
args: " []" | |
download: | |
selector: td:nth-last-child(6) span a[title='Baixar'] | |
attribute: href | |
size: | |
selector: td:nth-last-child(4) | |
seeders: | |
selector: td:nth-last-child(2) | |
leechers: | |
selector: td:nth-last-child(1) | |
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: bjshare-multi-row | |
name: BJ Share | |
description: BJ Share tracker | |
language: pt-br | |
links: | |
- https://bj-share.me/ | |
caps: | |
categories: | |
1: Movies # Filmes | |
2: TV # Seriados | |
3: PC # Aplicativos | |
4: Console # Jogos | |
5: Audio # Musica | |
6: TV # Videos de TV | |
7: Other # Outros | |
8: Books # Apostilas / Tutoriais | |
9: Books/Magazines # Revistas | |
10: Books/Ebook # Ebooks | |
12: Books/Comics # Historias em Quadrinhos | |
13: TV # Standup Comedy | |
14: TV/Anime # Anime | |
16: TV # Desenho Animado | |
17: Audio/Video # Shows | |
18: TV/Documentary # Documentarios | |
19: Audio/Audiobook # Audiobook | |
20: TV/Sport # Esporte | |
modes: | |
search: [q] | |
tv-search: [q, season, ep] | |
login: | |
path: /login.php | |
method: post | |
inputs: | |
username: "{{ .Config.username }}" | |
password: "{{ .Config.password }}" | |
keeplogged: 1 | |
Login: Login | |
error: | |
- selector: form[id='loginform'] + div[id='msgsPublic'] | |
message: | |
selector: form[id='loginform'] + div[id='msgsPublic'] | |
remove: style, b, span | |
ratio: | |
path: /index.php | |
selector: ul[id='userinfo_stats'] li[id='stats_ratio'] span[class='stat'] span | |
attribute: title | |
filters: | |
- name: regexp | |
args: "^(.+)$" | |
search: | |
path: /torrents.php | |
inputs: | |
searchstr: "{{ .Keywords }}" | |
rows: | |
selector: table[id='torrent_table'] tbody tr.group ~ tr.group_torrent, table[id='torrent_table'] tbody tr.torrent | |
multirow: | |
selector: tr.group | |
fields: | |
title: | |
selector: td:nth-child(3) > div > a | |
category: | |
selector: td:nth-child(2) > a | |
attribute: href | |
filters: | |
- name: regexp | |
args: "filter_cat\\[(\\d+)\\]" | |
fields: | |
title: | |
selector: td:nth-last-child(6) > a, td:nth-last-child(6) > div > a | |
description: | |
selector: td:nth-last-child(6) > a, td:nth-last-child(6) > div > .torrent_info | |
filters: | |
- name: split | |
args: [ "\n", -1 ] | |
- name: trim | |
args: " []" | |
download: | |
selector: td:nth-last-child(6) span a[title='Baixar'] | |
attribute: href | |
size: | |
selector: td:nth-last-child(4) | |
seeders: | |
selector: td:nth-last-child(2) | |
leechers: | |
selector: td:nth-last-child(1) |
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: bjshare | |
name: BJ Share | |
description: BJ Share - Semeando Amizades | |
language: pt-br | |
links: | |
- https://bj-share.me/ | |
caps: | |
categories: | |
1: Movies # Filmes | |
2: TV # Seriados | |
3: PC # Aplicativos | |
4: Console # Jogos | |
5: Audio # Musica | |
6: TV # Videos de TV | |
7: Other # Outros | |
8: Books # Apostilas / Tutoriais | |
9: Books/Magazines # Revistas | |
10: Books/Ebook # Ebooks | |
12: Books/Comics # Historias em Quadrinhos | |
13: TV # Standup Comedy | |
14: TV/Anime # Anime | |
16: TV # Desenho Animado | |
17: Audio/Video # Shows | |
18: TV/Documentary # Documentarios | |
19: Audio/Audiobook # Audiobook | |
20: TV/Sport # Esporte | |
modes: | |
search: [q] | |
login: | |
path: /login.php | |
method: post | |
inputs: | |
username: "{{ .Config.username }}" | |
password: "{{ .Config.password }}" | |
keeplogged: 1 | |
Login: Login | |
error: | |
- selector: form[id='loginform'] + div[id='msgsPublic'] | |
message: | |
selector: form[id='loginform'] + div[id='msgsPublic'] | |
remove: style, b, span | |
ratio: | |
path: /index.php | |
selector: ul[id='userinfo_stats'] li[id='stats_ratio'] span[class='stat'] span | |
attribute: title | |
filters: | |
- name: regexp | |
args: "^(.+)$" | |
search: | |
path: /torrents.php | |
inputs: | |
searchstr: "{{ .Keywords }}" | |
rows: | |
selector: table[id='torrent_table'] tbody tr.torrent | |
fields: | |
category: | |
selector: td:nth-child(2) > a | |
attribute: href | |
filters: | |
- name: regexp | |
args: "filter_cat\\[(\\d+)\\]" | |
title: | |
selector: td:nth-last-child(6) > div > a | |
description: | |
selector: td:nth-last-child(6) div.torrent_info | |
filters: | |
- name: trim | |
args: " []" | |
download: | |
selector: td:nth-last-child(6) span a[title='Baixar'] | |
attribute: href | |
size: | |
selector: td:nth-last-child(4) | |
seeders: | |
selector: td:nth-last-child(2) | |
leechers: | |
selector: td:nth-last-child(1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment