// ScrapingHandler is a default handler to serve up samples for scraping
// hackernews topics
ScrapingHandler is a default handler to serve up samples for scraping
hackernews topics
// ScrapingHandler is a default handler to serve up samples for scraping // hackernews topics
func ScrapingHandler(c buffalo.Context) error {
	url := "https://news.ycombinator.com/"
	articles, err := getArticles(url)
	if err != nil {
		c.Set("errors", err)
		return errors.WithStack(err)
	}
	c.Set("articles", articles)
	return c.Render(200, render.R.HTML("api-examples/scraping.html"))
}
func ScrapingHandler ( c buffalo . Context ) error { url := " " articles , err := getArticles ( url ) if err != nil { c . Set ( " " , err ) return errors . WithStack ( err ) } c . Set ( " " , articles ) return c . Render ( 200 , render . R . HTML ( " " ) ) }
ScrapingHandler is a default handler to serve up samples for scraping
hackernews topics
ScrapingHandler is a default handler to serve up samples for scraping hackernews topics