Skip to content

Instantly share code, notes, and snippets.

@cactushydrocodone
Last active December 3, 2017 15:23
Show Gist options
  • Save cactushydrocodone/9b4a1e2a068640e605129e82f6965f65 to your computer and use it in GitHub Desktop.
Save cactushydrocodone/9b4a1e2a068640e605129e82f6965f65 to your computer and use it in GitHub Desktop.
# I just wanted a simple way to extract all urls from a season from a series on bs.to so i wrote one.
# everyone could do this, but i share it, because im a cool retard.
# You have to go in your browser on the following url: "https://bs.to/serie/SERIESNAME/SEASONNUMER" as an example, https://bs.to/serie/Danny-Phantom/1
$('.episodes').children().children().each (function () {
var url = $(this).children("td").children("a").attr('href');
console.log("https://bs.to/" + url + "/OpenLoad");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment