API Reference
Scrape

Scrape Action API Reference ๐Ÿ“œ

Introduction ๐Ÿ“š

The Scrape action is used to extract data from a web element. This is part of the core package in Go-Ski.

Syntax ๐Ÿ“

Here's how you define a Scrape action:

Action{
    Type: core.Scrape,
    XPath: "/html/body/h1",
}

Parameters ๐Ÿ› ๏ธ

  • Type: Should be set to core.Scrape.
  • XPath: The XPath of the element you want to scrape data from.

Example ๐ŸŒŸ

Here's a simple example that scrapes data from an element:

Action{
    Type: core.Scrape,
    XPath: "/html/body/h1",
}

Conclusion ๐ŸŽ‰

The Scrape action is essential for extracting data from web pages. It allows you to collect the information you need for further processing or analysis.

For the complete example, you can check out the Go-Ski GitHub Repository (opens in a new tab).