hylim-tech-lover / web-scraper-go

A web scraper with Go as education purpose. Can be used as microservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web-scraper-go

Environment Setup / Pre-requisite

Please install the following for running OS environment before continue:

  1. Go

Quick Start

  1. Git clone current repository to your local environment and open with preferred IDE [eg: VS code].
  2. Open terminal in project root path and run following command to start
# Start web scrapper function
go run main.go
  1. Result will be stored as JSON data in generated folder.

Sample Extracted Quotes

[
  {
    "quoteText": "The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking.",
    "author": "Albert Einstein",
    "authorUrl": "https://quotes.toscrape.com/author/Albert-Einstein",
    "tags": ["change", "deep-thoughts", "thinking", "world"]
  },
  {
    "quoteText": "It is our choices, Harry, that show what we truly are, far more than our abilities.",
    "author": "J.K. Rowling",
    "authorUrl": "https://quotes.toscrape.com/author/J-K-Rowling",
    "tags": ["abilities", "choices"]
  },
  {...},
  {...},
  {...},
]

Third-party Golang package/modules installed

  • Colly

About

A web scraper with Go as education purpose. Can be used as microservices

License:MIT License


Languages

Language:Go 100.0%