Barsaati is a project aimed at scraping Twitter trends using Selenium WebDriver. This README provides detailed instructions on setting up the project, including resolving issues related to ChromeDriver installation and configuration.
- Node.js (v12 or later)
- npm (Node Package Manager)
- Google Chrome browser
-
Clone the Repository:
git clone https://github.com/shhiivvaam/barsaati.git cd barsaati -
Install Dependencies:
npm install -
Download ChromeDriver:
- Go to the ChromeDriver download page.
- Download the version of ChromeDriver that matches your Google Chrome version.
- Extract the downloaded file and note the path to
chromedriver.exe.
-
Set ChromeDriver Path:
- Add the path to
chromedriver.exeto your system's PATH environment variable, or - Specify the path directly in your code (see Configuration section).
- Add the path to
In your Selenium script (e.g., selenium-script.js), configure the path to ChromeDriver:
const {Builder, By, Key, until} = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
let service = new chrome.ServiceBuilder('path/to/your/chromedriver.exe').build();
chrome.setDefaultService(service);
let driver = new Builder().forBrowser('chrome').build();- Start the Server :
node backend/index.js
- Access the Application :
Open your browser and navigate to
http://localhost:3000.
Thankyou for visiting!!