Skip to content

The webscrapper agent is a ready off the shell agent with tools for scrapping web content

Notifications You must be signed in to change notification settings

agent-api/webscraper-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

agent-api Web scraper agent

This module provides a simple, off the shelf web scraper AI agent with tools for querying content off the web and extracting the relevant HTML content.

Usage

Install the module:

go get github.com/agent-api/webscraper-agent

Use the agent with your specified provider:

provider := openai.NewProvider(&openai.ProviderOpts{
	Logger: logger,
})
provider.UseModel(ctx, gpt4o.GPT4_O)


scraper, _ := webscraper.NewWebScraperAgent(&webscraper.WebScraperConfig{
	Provider: provider,
	Logger:   logger,
})

result, err := scraper.Run(ctx, "Please scrape https://johncodes.com/archive/2025/01-11-whats-an-ai-agent/ and summarize it.", agent.DefaultStopCondition)
if err != nil {
	panic(err)
}

About

The webscrapper agent is a ready off the shell agent with tools for scrapping web content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages