Documentation ¶
Index ¶
- func DostowWriter(apiURL, apiKey, storeName, category string, res chan map[string]interface{})
- func ScrapeCategory(url, category string, pages int) (chan map[string]interface{}, error)
- func StreamItemResultsToIO(ws io.Writer, res chan map[string]interface{})
- type Item
- type Result
- type SearchQuery
- type StreamChan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DostowWriter ¶
DostowWriter stores results in a store
func ScrapeCategory ¶
ScrapeCategory scrapes a jumia category
func StreamItemResultsToIO ¶
StreamItemResultsToIO takes a scraper response and sends it to a jsonlines `io.writer`
Types ¶
type SearchQuery ¶
type StreamChan ¶
type StreamChan chan *Item
Our MarshalerStream implementation
func (StreamChan) MarshalStream ¶
func (s StreamChan) MarshalStream(enc *gojay.StreamEncoder)
Click to show internal directories.
Click to hide internal directories.