Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcel-msc/puppeteer-correios

Simple way of using Puppeteer to get valid address of a giving CEP on Correios website.
https://github.com/marcel-msc/puppeteer-correios

correios correios-cep headless-chrome puppeteer

Last synced: 18 days ago
JSON representation

Simple way of using Puppeteer to get valid address of a giving CEP on Correios website.

Awesome Lists containing this project

README

        



Project logo

puppeteer-correios

[![Status](https://img.shields.io/badge/status-active-success.svg)]()
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)

---

It's a simple use of Puppeter to get a photo of a giving CEP.

## 📝 Table of Contents

- [About](#about)
- [Getting Started](#getting_started)
- [Usage](#usage)
- [Authors](#authors)

## 🧐 About

Open a headless browser go navegate to a URL of Correios and take a photo of the address found.

## 🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development purposes.

### Prerequisites

Change the second param of the type function to a valid CEP to search.

```
await page.type('#endereco', '03336000');
```

### Installing

```
npm install
```

```
npm run start
```

## 🎈 Usage
Search a valid CEP string and take a photo of the result.

## ✍️ Authors

- [@Marcel-MSC](https://github.com/Marcel-MSC) - Idea & Initial work