Rscrap
Ruby Web Scraper Telegram Bot
Install / Use
/learn @Skarlso/RscrapREADME
Rscrap
Ruby Web Scraper Telegram Bot.
Setup
First, you need to obtain a Telegram Bot token, by following this guide: Telegram Bot How-To.
After that, obtain your personal Telegram ID. Put both of these into their respective environment variables:
export RSCRAP_TOKEN=xxxxxxxx:ASDFffwf34444
export RSCRAP_USER_ID=111111111
Than run bundle install in the ruby folder to install all the gems. Once that's finished, setup the db with bundle exec ruby init_db.rb.
Creating a Cron Job for running
Create a crontab if you don't have any:
crontab -e
And add this line:
0 6-23 * * * /bin/bash -l -c 'cd /home/<user>/rubyproj/rscrap && bundle exec ruby scripts/reddit.rb'
For reddit, I recommend a one hour refresh rate based on how many subreddits you are following. You don't want to spam yourself too much. And the bot does handle bulk updates.
URL Shortening option for reddit urls
RScrap now supports URL shortening using bit.ly. Just set up these two environment properties:
export RSCRAP_BITLY_USERNAME=username
export RSCRAP_BITLY_API_KEY=api_key
This is how it looks like with shortened URLS:

Example
After the scrip runs you should see something like this from your bot:

Contribute
Contributions, issues, and PRs are very welcomed.
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
