Automated Authorization process for TD365 Platform
This Node.js script automates the login and order placement process on the TD365 platform using browser automation. The primary goal is to streamline the order placement workflow by collecting the necessary cookies for authentication.
-
Puppeteer: A Node library that provides a high-level API to control headless browsers or full browsers over the DevTools Protocol. In this project, Puppeteer is used for browser automation.
-
Puppeteer Plugin Stealth: A Puppeteer plugin that helps in preventing detection and blocking by websites through stealthy browser automation.
-
puppeteer-extra-plugin-adblocker: An essential tool for blocking unwanted ads and scripts during the automation process to improve performance and reliability.
-
Axios: A promise-based HTTP client for making requests to the TD365 platform and handling the authentication process.
Before running the script, make sure you have the following installed:
- Node.js: Download Node.js
- npm: npm is included with Node.js, so no need for a separate installation.
-
Clone the repository:
git clone https://github.com/PrantaDas/cookie-harvester.git
-
Change the driectory
cd cookie-harvester
-
Install dependencies
npm install or yarn
-
Start by
npm run dev or yarn dev
The script will launch a headless browser, navigate to the TD365 platform, log in using the provided credentials, and collect the required cookies for authentication.
This script is intended for educational and internal use only. Ensure compliance with the terms of service of the TD365 platform and applicable laws and regulations.
Feel free to contribute to the project by opening issues or submitting pull requests.