What you’ll learn
Web Scraping
Fetch data from HackerNews
Slack Integration
Send notifications to Slack channels
Scheduling
Configure automated publishing
API Usage
Work with external services
Create your bot
1
Fork the template
Sign in to Replit and fork the HackerNews webscraper template. Select + Use Template and follow the prompts to create your Replit App.
2
Create a Slack app
- Go to Slack Apps and select Create an App
- Choose From an app manifest
- Select your workspace
- Replace the manifest with this JSON
- Review and select Create
- Select Install the App
You may need administrator approval based on your organization’s policies.
3
Configure tokens
Add these secrets to your Replit App’s Secrets tab:
-
SLACK_BOT_TOKEN
- Go to Settings > Install App
- Copy the Bot User OAuth Token
-
SLACK_SIGNING_SECRET
- Go to Settings > Basic Information
- Copy the Signing Secret from App Credentials
-
SLACK_APP_TOKEN
- Go to Settings > Basic Information
- Under App-Level Tokens, select Generate Token and Scopes
- Add permissions and generate token
4
Customize your bot
Update
app.py
with your preferences:Get your Slack member ID from your profile settings under the ellipsis menu.
Publish with scheduling
1
Start publishing
Select Publish in the workspace header.
2
Configure schedule
- Choose Scheduled Deployments 2. Set your preferred schedule 3. Select Publish
3
Monitor
Your bot will now run automatically according to your schedule.
Customization options
Enhance filtering
- Add more keywords - Refine matching criteria - Customize scoring
Improve notifications
- Format messages - Add rich previews - Include metadata
Next steps
AI Integration
Add AI summaries to notifications
Deployments
Learn more about scheduling
Databases
Store historical data
Related guides
Create a Slack summarizer
Build a bot that summarizes Slack channels
Build with AI
Create apps using Agent and Assistant
Want to learn more about publishing? Check out our publishing documentation.