Module: LlmScraper

Defined in:
lib/llm_scraper.rb,
lib/llm_scraper/result.rb,
lib/llm_scraper/schema.rb,
lib/llm_scraper/scraper.rb,
lib/llm_scraper/version.rb,
lib/llm_scraper/configuration.rb,
lib/llm_scraper/prompt_builder.rb,
lib/llm_scraper/response_parser.rb,
lib/llm_scraper/llm_clients/base.rb,
lib/llm_scraper/content_fetchers/base.rb,
lib/llm_scraper/content_fetchers/jina.rb,
lib/llm_scraper/llm_clients/anthropic.rb,
lib/llm_scraper/content_fetchers/local.rb,
lib/llm_scraper/content_fetchers/firecrawl.rb,
lib/llm_scraper/content_fetchers/markdownify.rb,
lib/llm_scraper/llm_clients/openai_compatible.rb

Defined Under Namespace

Modules: ContentFetchers, LlmClients Classes: Configuration, ConfigurationError, Error, FetchError, LlmError, ParseError, PromptBuilder, ResponseParser, Result, Schema, SchemaError, Scraper

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configurationObject



24
25
26
# File 'lib/llm_scraper.rb', line 24

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



20
21
22
# File 'lib/llm_scraper.rb', line 20

def self.configure
  yield configuration
end

.reset_configuration!Object



28
29
30
# File 'lib/llm_scraper.rb', line 28

def self.reset_configuration!
  @configuration = Configuration.new
end