Этот проект представляет собой простой HTTP-прокси-сервер для отображения содержимого страниц Hacker News с модификацией текста.
Чтобы запустить контейнер, нам нужен Docker и docker-compose. Введите команду:
docker-compose up --build-
Установите зависимости, запустив следующую команду:
pip install -r requirements.txt
-
Запустите прокси-сервер:
python app.py
Прокси-сервер будет доступен по адресу
http://127.0.0.1:8232.
После успешного запуска сервера, вы можете обратиться к нему через веб-браузер или другие HTTP-клиенты, используя адрес http://127.0.0.1:8232/item?id=13713480.
Прокси-сервер модифицирует текст на страницах Hacker News, добавляя значок "™" после каждого слова из шести букв.
Пример: http://127.0.0.1:8232/item?id=13713480
This project is a simple HTTP proxy server designed to display the content of Hacker News pages with text modification.
To launch the container, we need Docker and docker-compose. Enter the following command in the terminal:
docker-compose up --build-
Install dependencies by running the following command:
pip install -r requirements.txt
-
Start the proxy server:
python app.py
The proxy server will be available at
http://127.0.0.1:8232.
After successfully starting the server, you can access it through a web browser or other HTTP clients using the address http://127.0.0.1:8232/item?id=13713480.
The proxy server modifies the text on Hacker News pages by adding the "™" symbol after each six-letter word.