Skip to content

This Node.js application allows you to accept search requests through Socket.IO, automatically perform Google searches, and find the correct URL that matches the hashed URL. It leverages Puppeteer for web scraping and Socket.IO for real-time communication.

Notifications You must be signed in to change notification settings

jnaugusto/puppeteer-socketio-search-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Puppeteer and Socket.IO Search App

This Node.js application allows you to accept search requests through Socket.IO, automatically perform Google searches, and find the correct URL that matches the hashed URL. It leverages Puppeteer for web scraping and Socket.IO for real-time communication.

Dependencies

To run this application, you'll need the following dependencies:

  • Puppeteer: A Node library that provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. Puppeteer is used for web scraping and automated browsing.

  • Socket.IO: A real-time engine that enables real-time, bidirectional communication between the server and clients using WebSockets. Socket.IO is used for accepting search requests and providing search results in real time.

  • MD5: A widely-used JavaScript library for generating MD5 hashes, which are used in this application to match URLs.

Usage

To use the application, connect to the server through a Socket.IO client and send search requests. The application will automatically perform Google searches for these requests and provide the matching URLs in real time.

Example Code

Here's an example of how to connect to the Socket.IO server and send a search request in JavaScript:

const socket = io('http://localhost:yourPort'); // Connect to the Socket.IO server.

socket.emit('searchRequest', { query: 'Your Search Query' }); // Send a search request.

socket.on('searchResult', (result) => {
  // Handle the search result.
  console.log('Matching URL:', result.url);
});

About

This Node.js application allows you to accept search requests through Socket.IO, automatically perform Google searches, and find the correct URL that matches the hashed URL. It leverages Puppeteer for web scraping and Socket.IO for real-time communication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published