This Go program scrapes movies and series from https://vidcloud9.com and gives you as API.
- Colly for Scraping websites.
- Run MoviesApi.go by go run test.go.
- In Browser go to http://localhost:8080/movies?pageNo=1 for Movies and http://localhost:8080/series?pageNo=1 for series.
- To get direct link of a movie go to http://localhost:8080/directLink?videoLink=<The_Link_Here>
- To get episodes list for a series go to http://localhost:8080/episodes?videoLink=<The_Link_Here>
Movies API result
Here is the output result for movies.[{
"Title": "Together (2021)",
"Link": "https://vidcloud9.com/videos/together-2021",
"Poster": "https://cdn.themovieseries.net/cover/together-2021.png"
},
{
"Title": "Spin",
"Link": "https://vidcloud9.com/videos/spin",
"Poster": "https://cdn.themovieseries.net/cover/spin.png"
}]
Series API result
Here is the output result for series.[{
"Title": "DC's Legends of Tomorrow - Season 6 Episode 12 - Bored on Board Onboard",
"Link": "https://vidcloud9.com/videos/dcs-legends-of-tomorrow-season-6-episode-12-bored-on-board-onboard",
"Poster": "https://cdn.themovieseries.net/cover/dcs-legends-of-tomorrow-season-6.png"
},
{
"Title": "Last Week Tonight With John Oliver - Season 8 Episode 21",
"Link": "https://vidcloud9.com/videos/last-week-tonight-with-john-oliver-season-8-episode-21",
"Poster": "https://cdn.themovieseries.net/cover/last-week-tonight-with-john-oliver-season-8.png"
}]
Episodes API result
Here is the output result for episodes.[{
"EpisodeNumber": "DC's Legends of Tomorrow - Season 6 Episode 12 - Bored on Board Onboard",
"EpisodeUrl": "https://vidcloud9.com/videos/dcs-legends-of-tomorrow-season-6-episode-12-bored-on-board-onboard"
},
{
"EpisodeNumber": "DC's Legends of Tomorrow - Season 6 Episode 11 - The Final Frame",
"EpisodeUrl": "https://vidcloud9.com/videos/dcs-legends-of-tomorrow-season-6-episode-11-the-final-frame"
}]
The movies and series showed here are not hosted by the Author, This program scrapes from https://vidcloud9.com which is available in the web.