Coder Social home page Coder Social logo

south-park-scraper's Introduction

South-Park-Scraper.js

image

A pure JavaScript library for scraping free streams / free episodes of South Park - works in the browser!

Example and usage

Fetch all episodes in a season

OPTIONS: (Language [REQUIRED], Type [REQUIRED], Season Number [REQUIRED])

import {southpark_scraper} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js/dist/iptv-parser.min.js';

async function Fetch_Season_1_Episodes() {
  try {
     let episode_details = southpark_scraper("en", "season", "1")
     console.log(await episode_details)
  } catch (err) {
  //  console.error(err);
  }
}
Fetch_Season_1_Episodes()
Fetch episode by episode & season number

OPTIONS: (Language [REQUIRED], Type [REQUIRED], Episode Number [REQUIRED], Season Number [REQUIRED])

import {southpark_scraper} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js/dist/iptv-parser.min.js';
async function Fetch_Season_1_Episode_1() {
  try {
     let episode_details = southpark_scraper("en", "episode", "1", "1")
     console.log(await episode_details)
  } catch (err) {
  //  console.error(err);
  }
}
Fetch_Season_1_Episode_1()
Fetch random episode

OPTIONS: (Language [REQUIRED], Type [REQUIRED])

import {southpark_scraper} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/IPTV-Parser.js/dist/iptv-parser.min.js';
async function Fetch_Random_Episode() {
  try {
     let episode_details = southpark_scraper("en", "random")
     console.log(await episode_details)
  } catch (err) {
  //  console.error(err);
  }
}
Fetch_Random_Episode()

Options

Parameters Meaning Default Required
query Language code for streams - options:en, . en Yes
type Type of search you want to make - options:Episode, Random, Season. undefined Yes
episode Episode number to use undefined Yes
season Season number to find undefined Yes

Supported Countries

The supported countries are the one that can view videos from one of the following websites below.

Disclaimer

Usage of this library may be illegal depending on your country laws. Please check your local streaming laws / laws before using it. The author of this library assumes no responsibility for your usage of this.

Contribution

If you find a bug or want to contribute to the code or documentation, you can help by submitting an issue or a pull request.

License

MIT

south-park-scraper's People

Contributors

marketingpip avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.