Skip to content

Instantly share code, notes, and snippets.

@bdashore3
Last active August 2, 2022 20:42
Show Gist options
  • Save bdashore3/68bd7fa6412a420915d93ca7bbe3261d to your computer and use it in GitHub Desktop.
Save bdashore3/68bd7fa6412a420915d93ca7bbe3261d to your computer and use it in GitHub Desktop.
FerriteSources-kingbri
{
"name": "kingbri's extensions",
"author": "kingbri",
"sources": [
{
"name": "AnimeTosho",
"version": "2",
"baseUrl": "https://animetosho.org",
"htmlParser": {
"searchUrl": "/search?q={query}",
"rows": "#content .home_list_entry",
"magnet": {
"query": ".links > a:nth-child(4)",
"attribute": "href"
},
"title": {
"query": ".link",
"attribute": "text"
},
"size": {
"query": ".size",
"attribute": "text"
},
"sl": {
"combined": ".links > span:nth-child(5)",
"attribute": "title",
"seederRegex": "Seeders:\\s?(\\d+)",
"leecherRegex": "Leechers:\\s?(\\d+)"
}
}
},
{
"name": "Nyaa",
"version": "2",
"baseUrl": "https://nyaa.si",
"htmlParser": {
"searchUrl": "?q={query}",
"rows": ".torrent-list tbody tr",
"magnet": {
"query": "td:nth-child(3) > a:nth-child(2)",
"attribute": "href"
},
"title": {
"query": "td:nth-child(2) > a:nth-last-child(1)",
"attribute": "text"
},
"size": {
"query": "td:nth-child(4)",
"attribute": "text"
},
"sl": {
"seeders": "td:nth-child(6)",
"leechers": "td:nth-child(7)",
"attribute": "text"
}
}
},
{
"name": "1337x",
"version": "1",
"baseUrl": "https://1337x.to",
"htmlParser": {
"searchUrl": "/search/{query}/1/",
"rows": ".table-list tbody tr",
"magnet": {
"externalLinkQuery": ".name a:nth-last-child(1)",
"query": "div.clearfix > ul:nth-child(1) > li:nth-child(1) > a",
"attribute": "href"
},
"title": {
"query": ".name > a:nth-last-child(1)",
"attribute": "text"
},
"size": {
"query": ".size",
"attribute": "text",
"regex": "(.*?B)"
},
"sl": {
"seeders": ".seeds",
"leechers": ".leeches",
"attribute": "text"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment