Please install the following for running OS environment before continue:
- Git clone current repository to your local environment and open with preferred IDE [eg: VS code].
- Open terminal in
project root path
and run following command to start
# Start web scrapper function
go run main.go
- Result will be stored as JSON data in
generated
folder.- All quotes extracted from example link here as examples
- User can change page to be extracted from this line of code. Max valid page is
10
[
{
"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"]
},
{...},
{...},
{...},
]
- Colly