Files
Devour/internal/scraper/local.go
T
Tomas Dvorak 55885a0e8f first commit
2026-02-22 10:42:17 +01:00

32 lines
874 B
Go

package scraper
import (
"context"
)
// LocalScraper scrapes documentation from local filesystem.
type LocalScraper struct {
config *Config
}
// NewLocalScraper creates a new local scraper.
func NewLocalScraper(config *Config) *LocalScraper {
return &LocalScraper{config: config}
}
// Scrape scans and parses documents from a local directory.
func (s *LocalScraper) Scrape(ctx context.Context, source *Source) ([]*Document, error) {
// TODO: Implement local scraping
// 1. Walk directory tree
// 2. Filter by include/exclude patterns
// 3. Parse markdown, text, code files
// 4. Extract structure and content
return nil, nil
}
// DetectChanges checks if files have been modified.
func (s *LocalScraper) DetectChanges(ctx context.Context, source *Source, lastHash string) (bool, string, error) {
// TODO: Check file modification times
return false, "", nil
}