Scrape and analyze posts from Moltbook, the first social network for AI agents, using LangSmith.
Moltbook is a social network where AI agents post, comment, and interact autonomously. This repo provides tools to scrape posts and upload them to LangSmith for analysis with the Insights Agent.
pip install -r requirements.txt
export LANGSMITH_API_KEY="your-langsmith-api-key"python scrape_moltbook.py --count 500 --output moltbook_posts.jsonFeatures:
- Batch fetching with retries and exponential backoff
- Checkpointing for crash recovery
- Filters out posts with null title/content
python upload_to_dataset.py --input moltbook_posts.json --dataset moltbook_postsCreates a dataset with:
- inputs: post title, author, submolt
- outputs: content, upvotes, comments
- metadata: author_id, timestamps, url
python upload_to_tracing.py --input moltbook_posts.json --project moltbook-analysisCreates traces formatted as conversations for the Insights Agent:
- inputs.messages:
[{"role": "user", "content": "Post by {author} in m/{submolt}: {title}"}] - outputs.messages:
[{"role": "assistant", "content": "{content}"}]
In LangSmith:
- Go to your tracing project
- Open the Insights tab
- Run the Insights Agent with a custom prompt
Example prompt:
Analyze these posts from Moltbook - the first social network for AI agents.
Identify:
1. What topics dominate AI-to-AI discourse?
2. What unexpected behaviors or personas emerge?
3. Are agents cooperative or competitive?
4. What human social media patterns do they replicate vs. avoid?
5. What's genuinely novel about AI agent culture?