4v3ngR / pluto_tv_scraper

Generate an m3u8 and xml (epg) for pluto tv channels
https://www.npmjs.com/package/plutotv-scraper
MIT License
21 stars 6 forks source link

Help #1

Closed derrgoo closed 10 months ago

derrgoo commented 10 months ago

Can you give a bit more directions. Sounds cool but I never worked with this before. How do we get this to work? 👍

4v3ngR commented 10 months ago

in order to get it to work, you need npm and node installed on your machine. These apps can easily be installed in Linux and macOS (I don't know how to install it in Windows).

Once npm and node is installed, do the following:

  1. check out the code
  2. cd to the pluto_tv_scraper directory
  3. run npm install (this will install the dependencies)
  4. to generate the playlist and xml, run the command node ./index.js

It does take a while due to the way the pluto TV api works for getting epg information (30 channels per call). So just wait. If everything goes well, you'll have 4 files created in the current directory (plutotv_us.m3u8, plutotv_us.xml, plutotv_uk.m3u8, plutotv_uk.xml).

I hope that helps.

Toei79 commented 10 months ago

in order to get it to work, you need npm and node installed on your machine. These apps can easily be installed in Linux and macOS (I don't know how to install it in Windows).

Once npm and node is installed, do the following:

1. check out the code

2. cd to the pluto_tv_scraper directory

3. run `npm install` (this will install the dependencies)

4. to generate the playlist and xml, run the command `node ./index.js`

It does take a while due to the way the pluto TV api works for getting epg information (30 channels per call). So just wait. If everything goes well, you'll have 4 files created in the current directory (plutotv_us.m3u8, plutotv_us.xml, plutotv_uk.m3u8, plutotv_uk.xml).

I hope that helps.

question how i able to generate from other countries? for example i change uk ip for sweeden and works but its not working if i add other line i did this

const sw = '83.145.40.200';

and await get('sw');

but i get a .m3u8 with uk channels

4v3ngR commented 10 months ago

Thanks for the update. I've updated the mapping code (in index.js). Now other IP addresses and region codes can be added. I've already added the Sweeden entry for you

derrgoo commented 10 months ago

in order to get it to work, you need npm and node installed on your machine. These apps can easily be installed in Linux and macOS (I don't know how to install it in Windows).

Once npm and node is installed, do the following:

  1. check out the code

  2. cd to the pluto_tv_scraper directory

  3. run npm install (this will install the dependencies)

  4. to generate the playlist and xml, run the command node ./index.js

It does take a while due to the way the pluto TV api works for getting epg information (30 channels per call). So just wait. If everything goes well, you'll have 4 files created in the current directory (plutotv_us.m3u8, plutotv_us.xml, plutotv_uk.m3u8, plutotv_uk.xml).

I hope that helps.

Thanks bro. Wish I was more tech savvy. Cool to see community chip in! Hopefully another way comes along that most of Matt's users can do with little technical ability.

Toei79 commented 10 months ago

in order to get it to work, you need npm and node installed on your machine. These apps can easily be installed in Linux and macOS (I don't know how to install it in Windows). Once npm and node is installed, do the following:

  1. check out the code
  2. cd to the pluto_tv_scraper directory
  3. run npm install (this will install the dependencies)
  4. to generate the playlist and xml, run the command node ./index.js

It does take a while due to the way the pluto TV api works for getting epg information (30 channels per call). So just wait. If everything goes well, you'll have 4 files created in the current directory (plutotv_us.m3u8, plutotv_us.xml, plutotv_uk.m3u8, plutotv_uk.xml). I hope that helps.

Thanks bro. Wish I was more tech savvy. Cool to see community chip in! Hopefully another way comes along that most of Matt's users can do with little technical ability.

its more easier that you think , only you need a linux server even other options are there. and run this

i was failing for this for one ","