You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/avraam311/golang-goods-crawler

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/avraam311/golang-goods-crawler

v0.0.0-20250407153405-a6ef058bad2a
Source
Go
Version published
Created
Source

Web-crawler for Amazon goods

Сервис предоставляющий API для получения названий товаром категории игровых мышек, спарсенных с Amazon.

Используемые технологии:

PostgreSQL (хранилище данных) Docker (запуск сервиса) Gin (веб-фреймворк) pgx (драйвер работы с PostgreSQL) cron (шедулер задач) golang-migrate (для миграций) chromedp(для парсинга js)

Сервис написан по Clean Architecture

Запуск

  • Склонировать репо
  • Создать файл .env в директории проекта и заполнить. В файле config/local.yaml можно конфигурировать http сервер
  • Выполнить в терминале:
    make build
    make run 
    

Спецификация API

GET /goods

Возвращает список названий товаров. Формат ответа такой:

{
    "goods": [
        {
            "ID": 1,
            "Name": "Redragon Gaming Mouse, Wireless Mouse Gaming with 8000 DPI, PC Gaming Mice with Fire Button",
        },
     ]
}

FAQs

Package last updated on 07 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts