This backend code is designed to search for movies and extract iframelinks using web scraping. It was written using Node.js, Express, Axios, Cheerio, and EJS.
Note: Only Works if you using Indonesian IP Address, otherwise you should use my another project
- Clone the repository from GitHub.
- Install the required dependencies using
npm install
. - Create a
.env
file in the root directory and add the following variables:PORT
- port to run the server on.TARGET_WEBSITE
- website URL for movie search.BRIDGE_DOMAIN
- domain for redirecting links to avoid CORS errors.
- Run the server using
node server.js
.
This route searches for movies using the provided query parameter and returns JSON data with movie image, header, and link. The user agent and referer headers are passed in the HTTP GET request.
This route extracts iframelinks from the provided URL using the magic potion selector. The decoded link is returned as an EJS rendered view.
This route renders an EJS view for searching for movies.
- Abba Yosua (Creator)