In this article, you will learn:
- What Jev is and how it evaluates collected data.
- Which use cases related to web scraping suit System One models.
- How to prepare a Python project and initialize the Bright Data and TypeSafe SDKs.
- How to collect Amazon reviews and classify them by issue type and severity with Jev.
- How to employ Jev to assess public TikTok posts by content type and topic relevance.
- How Jev can categorize Reddit discussions about encryption news.
- How to use Jev to classify LinkedIn company profiles by industry and target fit.
- How to prioritize GitHub release notes for upgrade review through Jev.
- When web scraping with Jev fits, when a generative LLM is better for flexible extraction, and how the two approaches differ.
Let’s dive in!
What Is Jev and How Does It Work?
Jev is TypeSafe’s System One model, designed to evaluate inputs and return structured judgments that software can process directly.
It works by comparing a given state, provided as plain text or structured JSON, against one or more questions defined by the developer. Each question specifies what to evaluate and the expected answer format. Unlike a generative chat model, this AI model returns typed results and probability information rather than open-ended text.
Jev supports three question types:
Choice: Selects an answer from a predefined set of options, returning the selected option and its associated probabilities.Score: Evaluates an input against an ordered scale, returning a score and probability distribution across the possible values.Noul: Evaluates a yes-or-no statement and estimates the probability that it is true, expressed as a value between0and1.
You can submit multiple questions against the same state to obtain different assessments in a single request. The results allow your application to implement classification, scoring, and decision-making logic without interpreting generated text.
Note that probabilities and confidence values help indicate uncertainty, but do not guarantee correctness. Your application remains responsible for applying thresholds, handling uncertain results, and routing cases for human review when necessary. Deterministic operations, such as counting and exact calculations, should remain in conventional application code.
For more details, see the System One documentation and TypeSafe primitives.
Using System One Models for Web Scraping
Web scraping with Jev is useful whenever collected pages contain text that requires interpretation. For instance, your scraping pipeline can extract a review’s rating, but determining whether the text describes a product defect, a delivery problem, or a feature customers value requires demystifying its meaning. Jev can make these calls.
At a high level, the workflow involves four steps:
- Collect web pages and parse them into JSON or get JSON records from web sources.
- Parse the scraped content and select the relevant text and context for each record.
- Send that state to Jev with focused questions and the answer options or scale required by your application.
- Process the typed results and their probability information in code to group records, apply thresholds, or route uncertain cases for review.
The following table summarizes real-world Jev web scraping use cases:
| Use case | Example sources | Where Jev helps | What your code handles |
|---|---|---|---|
| Review theme and issue classification | Amazon, Walmart, and Google Play reviews | Identify themes, sentiment, and reported product issues | Aggregate results by product, issue, or time period |
| Social content and campaign monitoring | TikTok, Instagram, and X public posts | Classify post purpose and relevance to a monitoring goal | Filter by date or relevance and count activity |
| Community discussion triage | Reddit, Stack Overflow, and GitHub Discussions | Distinguish bug reports, feature requests, usage questions, and other discussion types | Group topics and flag cases for review |
| Company profile classification | LinkedIn company pages, company websites, and business directories | Categorize stated industries, services, and alignment with defined criteria | Apply exact eligibility rules, such as location or company size |
| Release note prioritization | GitHub Releases, GitLab releases, and vendor changelog pages | Assess update types and their importance | Compare versions and apply compatibility rules |
Analyzing Review Feedback
Review classification is useful when feedback arrives in large volumes and uses varied language.
You can collect reviews from retailer pages, marketplaces, or app stores, then ask Jev to distinguish themes such as product defects, usability problems, delivery issues, and positive features. Then, a separate run can assess sentiment or score an explicitly reported issue against a scale you define.
The evaluation criteria should reflect the decisions you intend to make with the results. After classification, your code could group results by product, theme, and date to identify recurring patterns for further investigation. These counts describe the reviews you collected and should not be treated as proof of a product-wide trend on their own. Probability information also helps your application identify ambiguous reviews and route them for review before they influence a decision.
Classifying Public Social Posts
Public social content can support campaign monitoring, product research, and topic tracking.
Depending on the platform, you might collect post text, captions, hashtags, and publication dates from public posts or topic searches. Jev can classify whether a post is an announcement, demonstration, promotion, industry discussion, or unrelated content. You can also ask whether it matches a specific monitoring goal, such as tracking product launches.
This approach is useful when keyword matching fails to identify posts that express the same idea using different terminology. Jev provides a consistent classification for each record, while your code handles date filtering, category counts, and relevance thresholds.
In this context, short captions and missing context can make some judgments uncertain. Thus, include only the surrounding information needed to interpret each post, and route unclear cases for review when they matter to your analysis.
Triaging Community Discussions
Public forums, Q&A pages, and discussion threads often combine support questions, feature requests, bug reports, and general reactions. Jev can classify each contribution by its apparent purpose, helping you separate actionable product feedback from unrelated discussion. For threads about a specific technical topic, you can also define categories such as security concerns, skepticism or corrections, market reactions, and unrelated comments.
These classifications help organize discussions, while your application code handles category counts, links comments to their parent threads, and prioritizes items for review. Still, treat factual claims as requiring further investigation, particularly when they could influence security or product decisions.
Classifying Business Profiles
Company information appears across official websites, business directories, and professional profiles. A scraper can collect company descriptions, listed services, and other relevant fields. Jev can then process the collected data, identifying stated industries, services, and alignment with criteria you define. This is useful when companies describe similar activities using different terminology.
Your application can combine these insights with exact filters, such as location or employee range. Keeping these rules in code makes the qualification process easier to inspect and maintain. However, profiles may omit important details or use broad descriptions. Probability information helps you identify records that require closer examination. Jev also supports organizing candidate profiles, while your criteria and supporting evidence guide the final decision.
Prioritizing Software Release Notes
Project changelogs, repository releases, and vendor update pages describe software changes using formats that vary across publishers.
Jev can distinguish release notes as security fixes, breaking changes, new features, or maintenance updates. To prioritize further investigation, you can also ask Jev to assign a score against clearly defined attention levels. This allows your application to organize unstructured release descriptions according to the distinctions relevant to your software.
Jev’s classifications help identify potentially important changes and bring them to the top of a review queue. At the same time, they do not establish whether an upgrade is safe for your environment. Route uncertain or high-impact changes for human review before taking action.
Prerequisites for Using Jev in Real-World Web Scraping Scenarios
Before exploring the implementations of the scenarios described above, you need to prepare a few things.
Each scenario begins with collecting web data. This is the most difficult step because most websites use anti-scraping measures to limit automated requests. Jev also needs relevant page content in a structured format, such as JSON fields that match a clear schema. Because of that, you must take care of proper data parsing.
To simplify web data collection, you can use Bright Data’s Python SDK. This provides a Python interface to interact with the Bright Data scraping solutions. Its methods route web data collection requests through infrastructure that manages proxy rotation, browser fingerprinting, retries, and CAPTCHA solving.
The Python SDK simplifies interaction with Bright Data’s Web Scraper API endpoints, providing dedicated methods for retrieving Amazon reviews, Reddit discussions, and data from other sources. Bright Data Web Scraper APIs extract and parse data from supported sources, so you do not need to build and maintain separate request and parsing logic for each one. They return data in JSON, JSONL, CSV, NDJSON, or Parquet formats.
The SDK also provides methods for the SERP API, which returns structured search engine results. Similarly, you can call the Web Unlocker API to access any public web page. Read the official presentation blog post for more details about the SDK’s features and usage.
Note: Bright Data’s free tier provides 5,000 credits per month to use across supported products, including those available through the Python SDK. So, you can try the examples in this article for free.
Now, before you begin, make sure you have:
- Python 3.11 or later installed locally.
- A Bright Data account with an API key.
- A funded TypeSafe account and API key for Jev.
Follow the steps below to complete the setup!
Step #1: Create the Python Project and Install the Required Packages
Create a folder for your project (e.g., jev-scraping), then set up a virtual environment:
mkdir jev-scraping
cd jev-scraping
python -m venv .venv
On Windows, activate the environment in PowerShell with:
.\.venv\Scripts\Activate.ps1
On macOS or Linux, use:
source .venv/bin/activate
In the activated virtual environment, install the required packages with:
python -m pip install brightdata-sdk typesafe-sdk python-dotenv
The dependencies are:
brightdata-sdkprovides methods for using Bright Data’s web scraping, search, and data collection products.typesafe-sdkis a Python client for sending states and questions to Jev and receiving typed results.python-dotenvloads environment variables from a.envfile so your scripts can access API keys without placing them in the source code.
The Bright Data Python SDK documentation covers supported scrapers and request methods. For Jev’s Python requirements and first request, see the TypeSafe Quick Start.
Step #2: Configure Environment Variables
Your Bright Data and TypeSafe API keys are credentials, so you should not hardcode them in your Python scripts. Instead, read them from the environment variables. For simplicity, store them in a .env file in your project folder and let python-dotenv read it for you.
Create a file named .env next to your Python script and add your keys, replacing the placeholder values with your own:
BRIGHTDATA_API_KEY=<YOUR_BRIGHT_DATA_API_KEY>
TYPESAFE_API_KEY=<YOUR_TYPESAFE_API_KEY>
At the top of your Python script, import load_dotenv() and call it before reading either key:
from dotenv import load_dotenv
# Load the API keys from the local .env file
load_dotenv()
load_dotenv() reads the .env file and adds its key-value pairs to the process environment.
Step #3: Set Up the SDKs
Import the two Bright Data and TypeSafe SDKs alongside the Jev question types. Also, load the environment variables as constants:
import asyncio
import os
from dotenv import load_dotenv
from brightdata import BrightDataClient
from typesafe_sdk import AsyncTypeSafeClient, Choice, Noul, Score
# Load the API keys from the local .env file
load_dotenv()
# Store both credentials once so client setup stays easy to read
BRIGHTDATA_API_KEY = os.environ["BRIGHTDATA_API_KEY"]
TYPESAFE_API_KEY = os.environ["TYPESAFE_API_KEY"]
Initialize both SDKs inside an asynchronous function, then use their context managers to release resources when the work is complete:
async def main():
async with (
BrightDataClient(token=BRIGHTDATA_API_KEY) as brightdata,
AsyncTypeSafeClient(
api_key=TYPESAFE_API_KEY,
model="jev-latest",
) as jev,
):
# Collect records with Bright Data SDK, then classify selected fields with Jev...
pass
if __name__ == "__main__":
asyncio.run(main())
The Bright Data SDK collects structured web data in JSON, while Jev evaluates the state against the questions you provide. The following examples demonstrate how to integrate Jev into web scraping workflows.
Example #1: Classifying Amazon Reviews by Issue Type
Product reviews combine structured details, such as ratings and verified-purchase status, with free-text feedback. The Bright Data SDK enables you to collect review records from an Amazon product page. Then, Jev evaluates the review text against a taxonomy you define.
Note: Review sections on Amazon.com are not always publicly accessible and may require users to log in. Since scraping workflows should only target publicly available data, confirm that reviews are accessible without authentication before using a product URL. For this reason, the implementation uses a product page from Amazon.co.uk with publicly accessible reviews.
Step #1: Collect Amazon Reviews with Bright Data
Bright Data’s Amazon Reviews Scraper API returns structured review records with fields such as rating, review title, review text, verified-purchase status, and helpful votes. The brightdata.scrape.amazon.reviews() method in the Python SDK accepts a product URL and returns those fields. Behind the scenes, it calls the Amazon Reviews Scraper API.
Call the Amazon reviews scraper method with the target product URL:
result = await brightdata.scrape.amazon.reviews(
url="https://www.amazon.co.uk/dp/B0GR6C9BXY/",
timeout=300,
)
The SDK returns a result object. Check its success status and confirm that it contains data before continuing. The result may hold one record or several, so normalize it to a list to give the rest of your code one consistent shape:
# Stop if the scrape failed or returned no reviews
if not result.success or not result.data:
raise RuntimeError(f"Amazon review scrape failed: {result.error}")
# Normalize a single review and a list into the same loop shape
reviews = result.data if isinstance(result.data, list) else [result.data]
If you inspect or export result.data, you will see that each review record contains fields such as the rating, review text, verified status, and helpful vote count:

Step #2: Classify Review Topics and Severity with Jev
The Scraper API returns more information than you need for this classification, including product details and reviewer metadata. To keep Jev focused on the review, select rating, title, and text. Pass these fields in the request’s state argument.
The state is the input Jev evaluates, while questions tells it what to determine from that input. Here, a Choice question asks Jev to select the review’s main topic from fixed categories, and a Score question asks it to rate issue severity on a defined scale. This gives you structured answers that you can count and use in later Python logic.
First, specify the categories and severity levels. The category descriptions distinguish durability issues, setup problems, packaging complaints, positive feedback, and other topics. The ordered severity criteria range from no or minor issue to a serious issue that prevents normal use:
questions = {
"issue": Choice(
instructions="What is the main topic of `text`?",
criteria={
"durability": "The product broke, wore out, or feels poorly made.",
"setup": "The product is difficult to install or use for the first time.",
"packaging": "The complaint concerns shipping or packaging.",
"positive": "The review mainly praises the product.",
"other": "The review discusses another topic.",
},
),
"severity": Score(
instructions="How serious is the product issue described in `text`?",
criteria=[
"No issue or a minor preference.",
"A noticeable issue with a workaround.",
"A serious issue that prevents normal use.",
],
),
}
Next, prepare the state for each review. The API response uses review_header for the title, so the code maps that value to the title key. It checks for a review text field and skips records that do not contain one:
# Classify at most five returned reviews
for review in reviews[:5]:
if not isinstance(review, dict):
continue
# Read review text from the first available field in this record
text = review.get("review_text") or review.get("text") or review.get("body")
if not text:
continue
state = {
"rating": review.get("rating"),
"title": review.get("review_header") or review.get("title"),
"text": text,
}
Inside the same loop, immediately after building state, send it with both questions to Jev in one system_one() call:
answer = await jev.system_one(
state=state,
questions=questions,
)
Jev will return a typed answer for each question.
Step #3: Put It All Together
The script below collects the reviews, checks the scraper response, classifies up to five records, and counts the selected categories. It skips records without review text and uses a context manager to close both clients when processing ends:
import asyncio
import os
from dotenv import load_dotenv
from brightdata import BrightDataClient
from typesafe_sdk import AsyncTypeSafeClient, Choice, Score
# Load the API keys from the local .env file
load_dotenv()
# Store both credentials once so client setup stays easy to read
BRIGHTDATA_API_KEY = os.environ["BRIGHTDATA_API_KEY"]
TYPESAFE_API_KEY = os.environ["TYPESAFE_API_KEY"]
async def main():
# Context managers release each client's network resources when the script ends
async with (
BrightDataClient(token=BRIGHTDATA_API_KEY) as brightdata,
AsyncTypeSafeClient(api_key=TYPESAFE_API_KEY, model="jev-latest") as jev,
):
# Fetch recent product reviews, then keep the fields needed for classification
result = await brightdata.scrape.amazon.reviews(
url="https://www.amazon.co.uk/dp/B0GR6C9BXY/",
timeout=300,
)
# Stop if the scrape failed or returned no reviews
if not result.success or not result.data:
raise RuntimeError(f"Amazon review scrape failed: {result.error}")
# Normalize a single review and a list into the same loop shape
reviews = result.data if isinstance(result.data, list) else [result.data]
# Keep category totals for simple, deterministic aggregation
counts = {}
# Define the review labels and severity levels for Jev
questions = {
"issue": Choice(
instructions="What is the main topic of `text`?",
criteria={
"durability": "The product broke, wore out, or feels poorly made.",
"setup": "The product is difficult to install or use for the first time.",
"packaging": "The complaint concerns shipping or packaging.",
"positive": "The review mainly praises the product.",
"other": "The review discusses another topic.",
},
),
"severity": Score(
instructions="How serious is the product issue described in `text`?",
criteria=[
"No issue or a minor preference.",
"A noticeable issue with a workaround.",
"A serious issue that prevents normal use.",
],
),
}
# Classify at most five returned reviews
for review in reviews[:5]:
if not isinstance(review, dict):
continue
# Read review text from the first available field in this record
text = review.get("review_text") or review.get("text") or review.get("body")
if not text:
continue
# Send compact review fields and request fixed category and severity answers
answer = await jev.system_one(
state={
"rating": review.get("rating"),
"title": review.get("review_header") or review.get("title"),
"text": text,
},
questions=questions,
)
# Read the returned label and update the Python count
issue = answer.choices["issue"].choice
counts[issue] = counts.get(issue, 0) + 1
print(f"{issue}: severity={answer.scores['severity'].score:.2f}")
print("Issue counts:", counts)
if __name__ == "__main__":
asyncio.run(main())
Execute the script, and you will get something like:

In this run, all five reviews were classified as positive. Their severity scores ranged from 0.00 to 0.03, indicating no or only minor issues according to the defined rubric. Given the review text and corresponding scores, these results appear consistent with the supplied feedback.
Note that the full Jev response also includes probability information and confidence for its Choice and Score answers:

These values do not appear in the concise terminal output, but they are available in the structured response if you need to review uncertainty:
Example #2: Classifying TikTok Posts by Content Type
You can use web scraping with Jev to classify public TikTok posts about espresso machines by content type and topic relevance.
Step #1: Fetch TikTok Posts with Bright Data
Bright Data’s TikTok Scraper API returns structured post data, including descriptions, publication times, hashtags, engagement counts, and creator details. Call the scraper with the Python SDK to query TikTok’s public search results:
result = await brightdata.scrape.tiktok.posts_by_search_url_fast(
url="https://www.tiktok.com/search?q=espresso%20machine",
num_of_posts=5,
timeout=300,
)
Check the SDK result before processing it, and normalize it into a list for consistent iteration:
# Stop if the scrape failed or returned no posts
if not result.success or not result.data:
raise RuntimeError(f"TikTok scrape failed: {result.error}")
# Normalize a single post and a list into the same loop shape
posts = result.data if isinstance(result.data, list) else [result.data]
If you export the returned data, you will see:

The description field contains the post caption, which may include hashtags and mentions. The record also includes fields such as create_time, hashtags, play_count, and profile_username.
Step #2: Classify Post Content with Jev
This Jev web scraping example makes two judgments about each caption:
- A
Choiceclassifies the post as a demonstration, announcement, promotion, or unrelated content. - A
Noulestimates the probability that the caption is meaningfully about espresso machines.
Define the two questions:
questions = {
"content_type": Choice(
instructions="What kind of post is described by `caption`?",
criteria={
"demonstration": "Shows a product being used or tested.",
"announcement": "Announces a product, feature, or company update.",
"promotion": "Encourages viewers to buy or use a product or service.",
"unrelated": "Does not fit the other categories.",
},
),
"on_topic": Noul(
instructions="Is `caption` meaningfully about espresso machines?"
),
}
Next, select the caption from each record. Skip records that are not dictionaries or do not include a caption:
# Classify at most five returned posts
for post in posts[:5]:
if not isinstance(post, dict) or not post.get("description"):
continue
state = {"caption": post["description"]}
The complete script applies these questions to each caption and handles the returned judgments.
Step #3: Put It All Together
The Python script below fetches TikTok search results, skips records without captions, sends each caption to Jev, and counts the returned content labels. It prints the topic probability beside each label so you can inspect both judgments:
import asyncio
import os
from dotenv import load_dotenv
from brightdata import BrightDataClient
from typesafe_sdk import AsyncTypeSafeClient, Choice, Noul
# Load the API keys from the local .env file
load_dotenv()
# Store both credentials once so client setup stays easy to read
BRIGHTDATA_API_KEY = os.environ["BRIGHTDATA_API_KEY"]
TYPESAFE_API_KEY = os.environ["TYPESAFE_API_KEY"]
async def main():
# Context managers release each client's network resources when the script ends
async with (
BrightDataClient(token=BRIGHTDATA_API_KEY) as brightdata,
AsyncTypeSafeClient(api_key=TYPESAFE_API_KEY, model="jev-latest") as jev,
):
# Fetch up to five posts from TikTok search results
result = await brightdata.scrape.tiktok.posts_by_search_url_fast(
url="https://www.tiktok.com/search?q=espresso%20machine",
num_of_posts=5,
timeout=300,
)
# Stop if the scrape failed or returned no posts
if not result.success or not result.data:
raise RuntimeError(f"TikTok scrape failed: {result.error}")
# Normalize a single post and a list into the same loop shape
posts = result.data if isinstance(result.data, list) else [result.data]
# Keep category totals for simple, deterministic aggregation
counts = {}
# Define the content labels and topic relevance check
questions = {
"content_type": Choice(
instructions="What kind of post is described by `caption`?",
criteria={
"demonstration": "Shows a product being used or tested.",
"announcement": "Announces a product, feature, or company update.",
"promotion": "Encourages viewers to buy or use a product or service.",
"unrelated": "Does not fit the other categories.",
},
),
"on_topic": Noul(
instructions="Is `caption` meaningfully about espresso machines?"
),
}
# Classify at most five returned posts
for post in posts[:5]:
# Skip invalid records and posts without a caption
if not isinstance(post, dict) or not post.get("description"):
continue
# Send only the caption to Jev as the state
state = {"caption": post["description"]}
answer = await jev.system_one(
state=state,
questions=questions,
)
# Count the returned category and print topic probability
label = answer.choices["content_type"].choice
counts[label] = counts.get(label, 0) + 1
print(f"{label}: on_topic={answer.nouls['on_topic'].noul:.2f}")
print("Post counts:", counts)
if __name__ == "__main__":
asyncio.run(main())
In this run, the terminal output was:

Example #3: Categorizing Reddit Discussions About Encryption News
Jev groups the reactions in Reddit’s top public search results for “Anthropic encryption” from the past week.
Step #1: Collect Reddit Posts with Bright Data
Bright Data’s Social Media Scraper API supports Reddit and returns structured posts with titles, descriptions, and comments, including each comment’s text and upvote count. Use the Python SDK to request the results:
result = await brightdata.scrape.reddit.posts_by_keyword(
keyword="Anthropic encryption",
date="Past week",
sort_by="Top",
num_of_posts=5,
timeout=300,
)
Check the result for errors or missing data, then normalize a single record or a list into one consistent shape:
# Stop if the scrape failed or returned no discussions
if not result.success or not result.data:
raise RuntimeError(f"Reddit scrape failed: {result.error}")
# Normalize a single post and a list into the same loop shape
posts = result.data if isinstance(result.data, list) else [result.data]
Suppose you exported the scraped data to JSON. Look at the returned post records:

The title and description provide the post’s text, while comments can add context when a description is empty.
Step #2: Classify Discussion Reactions with Jev
You can combine each post’s title and description with up to three available comments, giving Jev context for two judgments:
- A
Choiceassigns the main reaction tosecurity_concern,skepticism,market_reaction, orunrelated. Security concerns discuss possible effects on encryption or protected data. Skepticism questions or corrects claims and headlines. Market reactions focus on related prices or trading. Unrelated posts do not discuss the news or its effects. - A
Noulestimates the probability that the title or selected comments show a clear security concern, correction, or market reaction.
Add the questions and criteria:
questions = {
"theme": Choice(
instructions="What is the main reaction in this Reddit discussion about current AI-and-encryption news?",
criteria={
"security_concern": "Expresses concern about the possible impact on encryption or protected data.",
"skepticism": "Questions or corrects claims, headlines, or alarm about the story.",
"market_reaction": "Focuses on price movements or trading related to the story.",
"unrelated": "Does not discuss the encryption news or its effects.",
},
),
"relevant_reaction": Noul(
instructions="Do the title or top comments show a clear security concern, correction, or market reaction to the current encryption news?"
),
}
To select the comments, rank them by their available upvote counts:
title = post.get("title", "")
description = post.get("description") or post.get("description_markdown") or ""
comments = [
comment
for comment in (post.get("comments") or [])
if isinstance(comment, dict)
]
comments.sort(key=lambda comment: comment.get("num_upvotes") or 0, reverse=True)
comment_text = " ".join(
(comment.get("comment") or "") for comment in comments[:3]
)
body = "\n".join(part for part in (description, comment_text) if part)
state = {"title": title, "body": body}
Step #3: Put It All Together
The complete script collects up to five search results, checks the Bright Data response, prepares text from each post and its highest-voted available comments, and classifies that text. Python counts the returned categories, while Jev provides the labels and relevance probabilities:
import asyncio
import os
from dotenv import load_dotenv
from brightdata import BrightDataClient
from typesafe_sdk import AsyncTypeSafeClient, Choice, Noul
# Load the API keys from the local .env file
load_dotenv()
# Store both credentials once so client setup stays easy to read
BRIGHTDATA_API_KEY = os.environ["BRIGHTDATA_API_KEY"]
TYPESAFE_API_KEY = os.environ["TYPESAFE_API_KEY"]
async def main():
# Context managers release each client's network resources when the script ends
async with (
BrightDataClient(token=BRIGHTDATA_API_KEY) as brightdata,
AsyncTypeSafeClient(api_key=TYPESAFE_API_KEY, model="jev-latest") as jev,
):
# Search top Reddit posts about current AI and encryption news
result = await brightdata.scrape.reddit.posts_by_keyword(
keyword="Anthropic encryption",
date="Past week",
sort_by="Top",
num_of_posts=5,
timeout=300,
)
# Stop if the scrape failed or returned no discussions
if not result.success or not result.data:
raise RuntimeError(f"Reddit scrape failed: {result.error}")
# Normalize a single post and a list into the same loop shape
posts = result.data if isinstance(result.data, list) else [result.data]
# Keep category totals for simple, deterministic aggregation
counts = {}
# Define the reaction categories and relevance question
questions = {
"theme": Choice(
instructions="What is the main reaction in this Reddit discussion about current AI-and-encryption news?",
criteria={
"security_concern": "Expresses concern about the possible impact on encryption or protected data.",
"skepticism": "Questions or corrects claims, headlines, or alarm about the story.",
"market_reaction": "Focuses on price movements or trading related to the story.",
"unrelated": "Does not discuss the encryption news or its effects.",
},
),
"relevant_reaction": Noul(
instructions="Do the title or top comments show a clear security concern, correction, or market reaction to the current encryption news?"
),
}
# Process up to five returned discussions
for post in posts[:5]:
if not isinstance(post, dict):
continue
# Add the highest-voted available comments because descriptions may be empty
title = post.get("title", "")
description = post.get("description") or post.get("description_markdown") or ""
comments = [
comment
for comment in (post.get("comments") or [])
if isinstance(comment, dict)
]
comments.sort(
key=lambda comment: comment.get("num_upvotes") or 0, reverse=True
)
comment_text = " ".join(
(comment.get("comment") or "") for comment in comments[:3]
)
body = "\n".join(part for part in (description, comment_text) if part)
if not title and not body:
continue
# Keep only the post fields needed for Jev's judgments
state = {"title": title, "body": body}
# Request a theme label and estimate discussion relevance
answer = await jev.system_one(
state=state,
questions=questions,
)
# Read the returned label and update the Python count
label = answer.choices["theme"].choice
counts[label] = counts.get(label, 0) + 1
print(f"{label}: relevant={answer.nouls['relevant_reaction'].noul:.2f}")
print("Discussion counts:", counts)
if __name__ == "__main__":
asyncio.run(main())
Run the script, and you will get an output like:

In this run, Jev labeled two discussions as security_concern, two as skepticism, and one as market_reaction. The relevance probabilities ranged from 0.31 to 0.80. Python calculated the counts from those five labels. In general, utilize these categories to organize reactions, not to confirm claims about encryption.
Example #4: Classifying LinkedIn Company Profiles by Industry and Target Fit
For market research, web scraping together with Jev can classify a public LinkedIn company profile by industry and estimate whether it offers data-related services. Here, we will be targeting Bright Data’s public company page on LinkedIn, but any other company profile will do.
Step #1: Fetch a LinkedIn Company Profile
The Bright Data LinkedIn Scraper returns structured company details such as its name, industry, description, specialties, locations, and website.
Use the Bright Data Python SDK to request the company record from its LinkedIn URL:
result = await brightdata.scrape.linkedin.companies(
url="https://www.linkedin.com/company/bright-data",
timeout=300,
)
The SDK result includes a success status and the returned data. Check for an error or empty result, then normalize a single record or a list into one company record:
# Stop if the scrape failed or returned no company profile
if not result.success or not result.data:
raise RuntimeError(f"LinkedIn scrape failed: {result.error}")
# Use the first record when the scraper returns a list
company = result.data[0] if isinstance(result.data, list) else result.data
if not isinstance(company, dict):
raise RuntimeError("LinkedIn returned an unexpected company record")
If you exported the returned profile record and inspect it, you would see:

The name and description provide context about the company, while industry can add a structured industry hint when present.
Step #2: Classify Company Industry and Target Fit with Jev
The company name and description help distinguish its business from a broad or ambiguous industry label. Employ these fields for two focused judgments:
- A
Choiceplaces the company indata_and_analytics,software,professional_services, orother. The category descriptions distinguish data platforms and services from other software, consulting, and profiles with insufficient information. - A
Noulestimates the probability that the company offers data collection, analytics, or web data services.
Start by defining the category descriptions and target-fit question:
questions = {
"industry_group": Choice(
instructions="Which category best describes the company in `name`, `industry`, and `description`?",
criteria={
"data_and_analytics": "Data platforms, analytics, or data services.",
"software": "Software products or technology services outside data services.",
"professional_services": "Consulting or other business services.",
"other": "Another industry or insufficient information.",
},
),
"target_fit": Noul(
instructions="Does the company offer data collection, analytics, or web data services?"
),
}
Next, prepare a compact record with the company fields relevant to those judgments:
state = {
"name": company.get("name"),
"industry": company.get("industry"),
"description": company.get("description") or "",
}
Step #3: Put It All Together
The full script fetches the profile, checks and normalizes the scraper result, sends the selected company details to Jev, and prints Jev’s category and target-fit probability:
import asyncio
import os
from dotenv import load_dotenv
from brightdata import BrightDataClient
from typesafe_sdk import AsyncTypeSafeClient, Choice, Noul
# Load the API keys from the local .env file
load_dotenv()
# Store both credentials once so client setup stays easy to read
BRIGHTDATA_API_KEY = os.environ["BRIGHTDATA_API_KEY"]
TYPESAFE_API_KEY = os.environ["TYPESAFE_API_KEY"]
async def main():
# Context managers release each client's network resources when the script ends
async with (
BrightDataClient(token=BRIGHTDATA_API_KEY) as brightdata,
AsyncTypeSafeClient(api_key=TYPESAFE_API_KEY, model="jev-latest") as jev,
):
# Fetch the public Bright Data company profile
result = await brightdata.scrape.linkedin.companies(
url="https://www.linkedin.com/company/bright-data",
timeout=300,
)
# Stop if the scrape failed or returned no company profile
if not result.success or not result.data:
raise RuntimeError(f"LinkedIn scrape failed: {result.error}")
# Use the first record when the scraper returns a list
company = result.data[0] if isinstance(result.data, list) else result.data
if not isinstance(company, dict):
raise RuntimeError("LinkedIn returned an unexpected company record")
# Keep only profile fields relevant to the classification
state = {
"name": company.get("name"),
"industry": company.get("industry"),
"description": company.get("description") or "",
}
# Define the company categories and target-fit question
questions = {
"industry_group": Choice(
instructions="Which category best describes the company in `name`, `industry`, and `description`?",
criteria={
"data_and_analytics": "Data platforms, analytics, or data services.",
"software": "Software products or technology services outside data services.",
"professional_services": "Consulting or other business services.",
"other": "Another industry or insufficient information.",
},
),
"target_fit": Noul(
instructions="Does the company offer data collection, analytics, or web data services?"
),
}
# Ask Jev to classify the company and estimate target fit
answer = await jev.system_one(
state=state,
questions=questions,
)
# Print Jev's category and yes probability for the target-fit question
print("Company:", state["name"])
print("Category:", answer.choices["industry_group"].choice)
print("Target fit probability:", f"{answer.nouls['target_fit'].noul:.2f}")
if __name__ == "__main__":
asyncio.run(main())
The terminal output for this run was:

Jev labeled the source company profile as data_and_analytics and returned a 0.98 yes probability for the target-fit question, which is a good result considering what Bright Data does.
Example #5: Prioritizing GitHub Release Notes for Upgrade Review
Jev can classify public Flask release notes by change type and how much attention an upgrade review may need.
Step #1: Get Public GitHub Releases
GitHub makes published releases in public repositories available without authentication, through its “List releases” endpoint. This returns structured data in JSON. Still, it can block users via rate limiting. To route your scraping request through Bright Data’s proxy and unblocking network, the Python SDK’s scrape_url() method uses the Web Unlocker API to retrieve the requested URL.
GitHub release records include fields such as tag_name, name, body, published_at, and prerelease. Request the public Flask releases endpoint with the SDK:
result = await brightdata.scrape_url(
"https://api.github.com/repos/pallets/flask/releases?per_page=5",
response_format="json",
timeout=300,
)
Unwrap the raw SDK response (i.e., a string storing the JSON output), decode the JSON body from the API, and normalize a single release or a list into one consistent shape:
# Stop if the request failed or returned no data
if not result.success or not result.data:
raise RuntimeError(f"GitHub release scrape failed: {result.error}")
# Unwrap the Bright Data response and decode the GitHub JSON body
payload = result.data
if isinstance(payload, dict) and "body" in payload:
if payload.get("status_code") != 200:
raise RuntimeError("GitHub returned HTTP {}".format(payload.get("status_code")))
payload = payload["body"]
if isinstance(payload, str):
payload = json.loads(payload)
if not payload:
raise RuntimeError("GitHub returned no release records")
# Normalize one release record and a list for the loop
releases = payload if isinstance(payload, list) else [payload]
Export to JSON and inspect a decoded release record to see the fields available for review:

The tag_name identifies the release version, while body contains the notes Jev classifies. A name field can provide additional title context when GitHub includes one.
Step #2: Classify Release Changes and Review Attention with Jev
Use the note text for two judgments:
- A
Choicelabels the main change assecurity,breaking,feature, ormaintenance. These categories separate security fixes, changes that may break existing users, new user-facing capabilities, and routine fixes or dependency updates. - A
Scorerates review attention from routine checks at0, through a review before upgrading at1, to prioritizing changes that may have high impact at2.
Set the categories and attention levels:
questions = {
"change_type": Choice(
instructions="What is the most important change in `notes`?",
criteria={
"security": "Fixes a security vulnerability or security risk.",
"breaking": "Changes behavior in a way that may break existing users.",
"feature": "Adds a user-facing capability.",
"maintenance": "Primarily fixes bugs or updates internal dependencies.",
},
),
"review_attention": Score(
instructions="How much upgrade review attention do `title` and `notes` warrant?",
criteria=[
"Routine, with no special review beyond normal checks.",
"Review the change before upgrading.",
"Prioritize review because the change may have high impact.",
],
),
}
Next, prepare each release by selecting the fields Jev needs and skipping entries without notes:
# Review at most five releases with notes
for release in releases[:5]:
if not isinstance(release, dict):
continue
notes = release.get("body") or ""
if not notes:
continue
state = {
"tag": release.get("tag_name"),
"title": release.get("name"),
"notes": notes,
}
Jev’s attention score is a triage cue, not a precise measure of compatibility or security impact. See TypeSafe’s guidance on model jaggedness for limitations with numeric precision.
Step #3: Put It All Together
The final script requests the releases, checks and normalizes the response, asks Jev to classify each note and score review attention, then counts the categories:
import asyncio
import json
import os
from dotenv import load_dotenv
from brightdata import BrightDataClient
from typesafe_sdk import AsyncTypeSafeClient, Choice, Score
# Load the API keys from the local .env file
load_dotenv()
# Store both credentials once so client setup stays easy to read
BRIGHTDATA_API_KEY = os.environ["BRIGHTDATA_API_KEY"]
TYPESAFE_API_KEY = os.environ["TYPESAFE_API_KEY"]
async def main():
# Context managers release each client's network resources when the script ends
async with (
BrightDataClient(token=BRIGHTDATA_API_KEY) as brightdata,
AsyncTypeSafeClient(api_key=TYPESAFE_API_KEY, model="jev-latest") as jev,
):
# Fetch public release records as JSON through Bright Data's URL scraper
result = await brightdata.scrape_url(
"https://api.github.com/repos/pallets/flask/releases?per_page=5",
response_format="json",
timeout=300,
)
# Stop if the scrape failed or returned no release records
if not result.success or not result.data:
raise RuntimeError(f"GitHub release scrape failed: {result.error}")
# Unwrap the Bright Data response and decode the GitHub JSON body
payload = result.data
if isinstance(payload, dict) and "body" in payload:
if payload.get("status_code") != 200:
raise RuntimeError("GitHub returned HTTP {}".format(payload.get("status_code")))
payload = payload["body"]
if isinstance(payload, str):
payload = json.loads(payload)
if not payload:
raise RuntimeError("GitHub returned no release records")
# Normalize one release record and a list for the loop
releases = payload if isinstance(payload, list) else [payload]
# Keep category totals for simple, deterministic aggregation
attention_counts = {}
# Define release change categories and review attention levels
questions = {
"change_type": Choice(
instructions="What is the most important change in `notes`?",
criteria={
"security": "Fixes a security vulnerability or security risk.",
"breaking": "Changes behavior in a way that may break existing users.",
"feature": "Adds a user-facing capability.",
"maintenance": "Primarily fixes bugs or updates internal dependencies.",
},
),
"review_attention": Score(
instructions="How much upgrade review attention do `title` and `notes` warrant?",
criteria=[
"Routine, with no special review beyond normal checks.",
"Review the change before upgrading.",
"Prioritize review because the change may have high impact.",
],
),
}
# Review at most five release records
for release in releases[:5]:
if not isinstance(release, dict):
continue
# Skip release records without notes
notes = release.get("body") or ""
if not notes:
continue
# Ask Jev about the release note and relevant identifiers
answer = await jev.system_one(
state={
"tag": release.get("tag_name"),
"title": release.get("name"),
"notes": notes,
},
questions=questions,
)
# Count categories and leave upgrade decisions to a reviewer
change_type = answer.choices["change_type"].choice
attention = answer.scores["review_attention"].score
attention_counts[change_type] = attention_counts.get(change_type, 0) + 1
print(f"{release.get('tag_name')}: {change_type}, attention={attention:.2f}")
print("Release counts:", attention_counts)
if __name__ == "__main__":
asyncio.run(main())
Launch the script. You will get something like this:

This time, Jev labeled three releases as security, one as maintenance, and one as breaking. Its review-attention scores ranged from 0.03 to 1.85.
Notice how one response merits closer inspection:

For release 3.0.3, Jev chose security, but the choice confidence was only 0.32. Its probability was 0.49 for security and 0.42 for maintenance. Treat a result like that as an uncertain label for reviewer follow-up, not confirmation of a security issue.
Jev vs LLMs in Web Scraping
Now, a natural question arises: when does Jev fit, and when is a generative LLM better suited to the task?
Jev and generative LLMs serve different needs after a scraper collects page content. Jev makes a focused judgment about that data, for example, whether a review reports a defect or a release includes a breaking change. Its constrained answers and probability information help your code apply consistent rules and flag uncertain records.
Instead, an LLM can interpret page text to extract variable fields, summarize long discussions, or explain patterns across several sources. In practice, Jev suits repeated decisions with known categories, while an LLM suits flexible extraction pipelines.
When to Choose Jev for Web Scraping
Choose Jev for web scraping with Jev when you need a repeated, focused judgment about collected data. It is a good fit when:
- You need to classify many records using known categories, such as sorting reviews by issue type or release notes by change type.
- You need to filter or prioritize content by meaning, such as finding posts relevant to a monitoring topic or discussions that need closer review.
- You want Jev to make the semantic judgment while your code handles exact counts, date comparisons, thresholds, and escalation of uncertain results.
Further reading:
When to Use an LLM for Web Scraping
Choose a generative LLM when the task needs flexible extraction or generated text. It is useful when:
- You need to extract structured fields such as names, prices, and descriptions, where values are not known in advance and can vary between pages.
- The sites you scrape change their layouts often or present the same information in different ways. An LLM can interpret the page content and map it to your schema, reducing reliance on CSS selectors or XPath rules tied to specific elements.
- You want to summarize long discussions, explain differences between pages, or explore themes before defining a consistent set of categories.
For implementation examples of how to use LLMs for web scraping, read:
- Web Scraping With Gemini: Complete Tutorial
- Web Scraping with ChatGPT: Step-By-Step Tutorial
- Web Scraping with Kimi: Step-by-Step Guide
- Multimodal Web Scraping with MiniMax
- Web Scraping With Qwen3: Complete Tutorial
Conclusion
In this tutorial, you saw how Jev could classify selected fields from scraped records, including product reviews, social media posts, company profiles, and software release notes.
Regardless of the use case, the process started with collecting web data. Because many websites protect their most valuable public pages with anti-bot solutions, you needed a dedicated scraping solution to avoid the overhead of building and maintaining your own scraping infrastructure.
The Bright Data Python SDK wrapped its production-ready web data scraping products in easy-to-use Python methods. You can collect up to 5,000 web data records per month for free through the SDK by taking advantage of Bright Data’s free tier.
Bright Data helps retrieve web data from popular domains for free. Then, Jev evaluates its content, and Python handles parsing, counting, threshold checks, and other deterministic operations.
Create a free Bright Data account and start classifying structured web data records with Jev!