Install the SDK
Set your API key
Get a secret API key from the dashboard. Set it in the terminal where you will run the example:Scrape a webpage
Save this asscrape.rb:
scrape.rb
Gemfile, add gem "context.dev", run bundle install, and use bundle exec ruby scrape.rb.
Check the result
The example prints the page content as Markdown. Look for theExample Domain heading; the remaining text and formatting may vary.
Expected heading
Retrieve brand data
Replace the request and finalputs with this lookup. It prints the matched company name.
Next steps
Scrape a webpage
Choose which page content to include.
Retrieve brand data
Look up profiles with other company identifiers.