This is a submission for the Runner H "AI Agent Prompting" Challenge
What I Built
Study Group Connector uses Runner H and Surfer H to scrape public LinkedIn groups, Reddit subreddits, and Discord servers for active study groups and free bootcamps (keywords: “free bootcamp,” “study group,” “coding”). It compiles 10–20 communities into a Google Sheet and emails the results, saving students hours searching for peer support.
Demo
How I Used Runner H
I leveraged Runner H’s Surfer H web-scraping capabilities and Google Sheets/Gmail integrations to automate community discovery. Here’s how to replicate it:
- Access Runner H: Sign up at https://runner.hcompany.ai/ using your Google account.
- Input the Prompt: Create a new run in Runner H and paste the following prompt:
1. **Initialize Parameters**:
- Use the predefined email: “[your-email]” (replace with your actual Gmail address and authenticate in H-Studio before running).
- Search for communities offering free bootcamps or study groups using keywords: “free bootcamp,” “study group,” “coding bootcamp,” “learning community.”
- Target platforms: LinkedIn groups, Reddit subreddits, Discord servers.
2. **Scrape LinkedIn Groups**:
- Navigate to https://www.linkedin.com/search/results/groups/?keywords=free%20bootcamp%20study%20group.
- Extract up to 10 groups, including: group name, platform (“LinkedIn”), description (first 50 words), join link (URL to group page).
- Filter for public groups with keywords “free bootcamp,” “study group,” or “coding” in name or description, and active status (e.g., member count >100 or recent posts).
3. **Scrape Reddit Subreddits**:
- Navigate to https://www.reddit.com/r/learnprogramming, https://www.reddit.com/r/coding, and https://www.reddit.com/r/learnpython.
- Extract up to 10 posts or subreddit descriptions mentioning “free bootcamp” or “study group,” including: subreddit name (e.g., r/learnprogramming), platform (“Reddit”), description (first 50 words), join link (subreddit or post URL).
- Use public RSS feeds (e.g., https://www.reddit.com/r/learnprogramming/.rss) if direct scraping fails.
- Filter for posts or subreddits with recent activity (e.g., posted within 30 days).
4. **Scrape Discord Servers**:
- Navigate to https://disboard.org/servers/tag/study or https://discord.me/servers.
- Search for “coding,” “bootcamp,” or “study group.”
- Extract up to 10 servers, including: server name, platform (“Discord”), description (first 50 words), join link (invite URL).
- Filter for public servers with keywords “free bootcamp” or “study group” and active status (e.g., member count >50).
5. **Filter Relevant Communities**:
- Keep communities with:
- Keywords “free bootcamp,” “study group,” “coding bootcamp,” or “learning community” in name or description.
- Active status (e.g., recent posts within 30 days, member count >50 for Discord/LinkedIn).
- Remove duplicates (same group name and platform).
- Aim for 10-20 total communities across platforms.
6. **Store Results in Google Sheet**:
- Create a Google Sheet titled “Study Group Communities” with columns: Group Name, Platform, Description, Join Link.
- Populate with filtered communities, ensuring no duplicates.
7. **Email Results**:
- Send an email via Gmail to [your-email] with the subject: “Free Bootcamp and Study Group Communities”.
- Email content: “Hi [Your Name], Found [number] communities offering free bootcamps or study groups. View details: [Google Sheet link]. Regards, Study Group Connector”
- Include the Google Sheet link.
8. **Error Handling**:
- If fewer than 5 communities are found, email [your-email]: “Warning: Insufficient communities found. Try again later or check search terms.”
- If scraping fails for any platform, retry 3 times. If still failing, skip to the next platform or use fallback URLs: https://www.linkedin.com/search/results/content/?keywords=study%20group, https://www.reddit.com/search/?q=free%20bootcamp, https://disboard.org/servers.
- If Google Sheet creation fails, output community data as a text summary in H-Studio with columns: Group Name, Platform, Description, Join Link.
- Log errors in H-Studio (e.g., “Error: Unable to scrape [platform] for communities”).
- Run the Workflow: Hit “Run” in Runner H. The agent will scrape LinkedIn, Reddit, and Discord, filter communities, populate the Google Sheet, and send an email.
- Check Outputs: Verify the Google Sheet (“Study Group Communities”) in your Google Drive and the email in your Gmail inbox. Check for error logs or fallback text output if issues occur.
Use Case & Impact
Study Group Connector helps students and learners find active study groups and free bootcamps on LinkedIn, Reddit, and Discord, saving 1–2 hours weekly. It fosters peer collaboration for coders, data scientists, and educators, streamlining community discovery and enhancing engagement in learning ecosystems.
Top comments (0)