Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/marcel-msc/puppeteer-correios
- Owner: Marcel-MSC
- Created: 2022-01-27T20:05:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T16:48:45.000Z (8 months ago)
- Last Synced: 2024-10-16T17:12:24.123Z (2 months ago)
- Topics: correios, correios-cep, headless-chrome, puppeteer
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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)Open a headless browser go navegate to a URL of Correios and take a photo of the address found.
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.- [@Marcel-MSC](https://github.com/Marcel-MSC) - Idea & Initial work