DEV Community

Michael Willian Santos
Michael Willian Santos

Posted on

Brand : crawler to get up-to-date brand assets

// start

Hi everyone!
GitHub of the Project


One of the projects I am working has a page where you can search for stock market enterprises (company). One of my struggles of the project was the requirement to get the brand logo of the company. So I was searching around the web several tools to make it more easy... I have found some, however, either the price was not affordable or the tool itself not attend all my needs. So I have decided to create one using the concept of 'scraping into the web'.


// How To Use

Warn: It is not ready for production.
To use it you need to install on your Node project the package 'puppeteer' and this one '@vorlefan/brand'.
The function itself is really easy to use. Few options, you can read the doc on the github page.

Example:

const { BrandCrawler } = require('@vorlefan/brand').default
const puppeteer = require('puppeteer')

let URL = 'https://www.lojasrenner.com.br/'

void (async function () {
    const test = await BrandCrawler({
        website: URL,
        puppeteer,
        timeout: 1e9,
        instagram: true,
        pageTimeout: 0,
        twitter: true,
        facebook: true,
    })

    console.log(test)
})()

The return you can find on the github page (I don't want to polute this post here xD)


// Use Case

If you are building a 'brand search' or the app that you are creating requires the logo and banner from the enterprise in question, I guess that this will suit you pretty well :)


// End

There a lot of feature that I'm planning for this module, then if you want to, please contribute or follow up the news xD

Top comments (0)