有 421 条评论的 r/SideProject 线程讨论了是否在构建之前进行验证。共识:在 Reddit 上搜索人们积极询问你计划构建什么。如果没有人问,请重新考虑。本教程使用 Scavio Reddit 端点自动执行该验证步骤。
前置条件
- Scavio API 密钥
- Python 3.8+
- 需要验证的副项目想法
操作指南
步骤 1: 定义需求信号查询
创建表明对您的想法的需求的搜索查询。
Python
idea = 'invoice generator for freelancers'
demand_queries = [
f'{idea}',
'need invoice tool freelancer',
'invoice software recommendation',
'tired of manual invoices',
'looking for invoice generator',
]步骤 2: 通过 Scavio 搜索 Reddit
查询每个需求信号的 Reddit 端点。
Python
import requests, os
H = {'x-api-key': os.environ['SCAVIO_API_KEY']}
def search_reddit_demand(query):
data = requests.post('https://api.scavio.dev/api/v1/search',
headers=H,
json={'platform': 'reddit', 'query': query}).json()
return data.get('results', [])步骤 3: 评分需求强度
将帖子、点赞和评论视为需求信号。
Python
def score_demand(results):
if not results:
return {'score': 0, 'posts': 0}
total_engagement = sum(
r.get('upvotes', 0) + r.get('comments', 0)
for r in results
)
return {
'score': len(results) * 10 + total_engagement,
'posts': len(results),
'engagement': total_engagement,
'top_subreddits': list(set(r.get('subreddit', '') for r in results[:10]))
}步骤 4: 生成需求报告
将所有查询结果合并为通过/不通过建议。
Python
def demand_report(idea, queries):
total_score = 0
all_subreddits = set()
for q in queries:
results = search_reddit_demand(q)
score = score_demand(results)
total_score += score['score']
all_subreddits.update(score.get('top_subreddits', []))
print(f'Query: "{q}" -> {score["posts"]} posts, score {score["score"]}')
print(f'\nTotal demand score: {total_score}')
print(f'Active subreddits: {", ".join(all_subreddits)}')
if total_score > 200:
print('Verdict: Strong demand. Consider building.')
elif total_score > 50:
print('Verdict: Moderate demand. Narrow the niche.')
else:
print('Verdict: Weak demand. Pivot or find a different angle.')Python 示例
Python
import os, requests
H = {'x-api-key': os.environ['SCAVIO_API_KEY']}
def scan_demand(idea):
queries = [idea, f'need {idea}', f'{idea} recommendation', f'looking for {idea}']
for q in queries:
data = requests.post('https://api.scavio.dev/api/v1/search', headers=H,
json={'platform': 'reddit', 'query': q}).json()
posts = data.get('results', [])
print(f'{q}: {len(posts)} posts')
scan_demand('invoice generator for freelancers')JavaScript 示例
JavaScript
const res = await fetch('https://api.scavio.dev/api/v1/search', {
method: 'POST',
headers: {'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json'},
body: JSON.stringify({platform: 'reddit', query: 'need invoice tool freelancer'})
});
const data = await res.json();
console.log(`Found ${data.results?.length || 0} demand signals`);预期输出
JSON
Reddit demand report: post count, engagement score, active subreddits, and go/no-go recommendation. 5 queries = $0.025 total cost.