web-scraper-go

command module
v0.0.0-...-aa84063 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 8 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL