Skip to content

AmanKumarVerma11/Twitter-Trends-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Trends Scraper

This project is a web application that scrapes trending topics from Twitter using Selenium and displays them on a React frontend. The backend is built with Node.js and Express, and it uses MongoDB to store the scraped data.

Technologies Used

  • Frontend: React, Vite, Framer Motion
  • Backend: Node.js, Express, Selenium WebDriver, MongoDB
  • Other: ProxyMesh for proxy management, dotenv for environment variables

Live Demo

Live Demo

Watch the Video

Setup Instructions

Prerequisites

  • Node.js and npm installed
  • MongoDB instance running
  • ProxyMesh account for proxy management

Backend Setup

  1. Navigate to the backend directory:

    cd backend
  2. Install the dependencies:

    npm install
  3. Create a .env file in the backend directory and add the following environment variables:

    MONGODB_URI=your_mongodb_uri
    TWITTER_USERNAME=your_twitter_username
    TWITTER_PASSWORD=your_twitter_password
    TWITTER_VERIFICATION_USERNAME=your_twitter_verification_username
    PROXYMESH_USERNAME=your_proxymesh_username
    PROXYMESH_PASSWORD=your_proxymesh_password
    PORT=3001
  4. Start the backend server:

    node server.js

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend
  2. Install the dependencies:

    npm install
  3. Start the frontend development server:

    npm run dev

Running the Application

  1. Ensure the backend server is running.
  2. Open your browser and navigate to http://localhost:3000.
  3. Click the "Click here to run the script" button to scrape the latest Twitter trends.

About

This project is a web application that scrapes trending topics from Twitter using Selenium and displays them on a React frontend. The backend is built with Node.js and Express, and it uses MongoDB to store the scraped data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors