Mini Bookmark is a Telegram mini-app that allows users to enter a URL, scrape its contents, and display the scraped data directly within the telegram. Users also have the option to download the scraped content as a JSON file. Try the bot here: @content_crawl_bot
- Input a URL to scrape content.
- View the scraped contents within the Telegram interface.
- Download the scraped data as a JSON file.
- Frontend/UI: React
- Backend API: FastAPI (Python)
- Telegram Bot Framework: python-telegram-bot library
Make sure you have the following installed on your local machine:
- Python (version 3.8 or higher)
- Node.js and npm (or any other package manager)
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/aok207/telegram-mini-app.git cd telegram-mini-app
-
Install the necessary dependencies for the backend and bot:
cd server pip install -r requirements.txt
-
Install the frontend dependencies:
cd ui npm install
You'll need three terminal tabs or windows to run this project.
-
Terminal 1: Run the FastAPI backend:
cd server fastapi dev app/main.py
-
Terminal 2: Run the React frontend:
cd ui npm run dev
-
Terminal 3: Run the Telegram bot:
cd server python bot.py
- Open the Telegram app and interact with the bot.
- Enter a URL to scrape its contents.
- View the scraped content or download it as a JSON file.