DEV Community

Michael Willian Santos
Michael Willian Santos

Posted on

2 1

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

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series