# Auto Refresh Bot using Puppeteer
![GitHub](https://img.shields.io/github/license/sandroamiridze/refresh-bot)
![Node.js](https://img.shields.io/badge/Node.js-%3E%3D%2012-brightgreen)
Automate webpage refreshing with Puppeteer, a Node.js library that provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol.
## Table of Contents
- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
## Introduction
This project demonstrates how to create a simple bot that uses Puppeteer to automate the refreshing of a web page at a specified interval. It's a useful example to understand how browser automation can be accomplished using Puppeteer.
## Installation
1. Make sure you have [Node.js](https://nodejs.org/) installed on your system.
2. Clone this repository:
```sh
git clone https://github.com/sandroamiridze/refresh-bot.git
-
Install the project dependencies:
cd auto-refresh-bot npm install
-
Open the
refreshBot.js
file in a text editor. -
Replace
'https://example.com'
with the URL of the webpage you want to refresh. -
In your terminal, run the bot:
node refreshBot.js
This will launch a Puppeteer-controlled browser, navigate to the specified webpage, and refresh it at the defined interval.
Contributions are welcome! If you encounter any issues or have ideas for improvements, please feel free to open an issue or submit a pull request. For major changes, please open an issue first to discuss your proposed changes.
This project is licensed under the MIT License.