hatebu

package module
v0.0.0-...-5d21ae9 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 2 Imported by: 0

README

hatebu

Crawl hatebu to use something like daily chat bot

Usage

write the code like this.

package main

import (
	"fmt"

	"github.com/maito1201/hatebu"
)

func main() {
	results, err := hatebu.ScrapeHotEntry()
	if err != nil {
		panic(err)
	}
	for _, v := range results {
		fmt.Printf("%s %s\n", v.Title, v.Href)
	}
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScrapeResult

type ScrapeResult struct {
	Href  string
	Title string
}

func ScrapeHotEntry

func ScrapeHotEntry() ([]ScrapeResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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