https://github.com/pashpiter/news_text_modifier
Http-прокси-сервер для изменения текста статьей на странице news.ycombinator.com/
https://github.com/pashpiter/news_text_modifier
beautifulsoup fastapi httpx pytest python
Last synced: about 1 month ago
JSON representation
Http-прокси-сервер для изменения текста статьей на странице news.ycombinator.com/
- Host: GitHub
- URL: https://github.com/pashpiter/news_text_modifier
- Owner: pashpiter
- Created: 2023-09-04T16:20:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-30T12:48:16.000Z (over 2 years ago)
- Last Synced: 2025-05-07T20:18:19.885Z (about 1 year ago)
- Topics: beautifulsoup, fastapi, httpx, pytest, python
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# news_text_modifier
##### Стек: Python, FastAPI, Beautifulsoup, httpx, pytest
***
### Что умеет news_text_modifier
Приложение котрое показывает содержимое страниц Hacker News, изменяя текст на страницах по следующему правилу: после каждого слова из шести букв стоит значок «™».
Доступ осуществляется по адресу: http://127.0.0.1/item?id={int}, где id - id статьи с сайта https://news.ycombinator.com/
Пример можно найти в конце файла
***
### Запуск проекта
Для запуска проекта необходимо:
* Клонировать репозиторий
```
git clone git@github.com:pashpiter/news_text_modifier.git
```
* Перейти в папку news_text_modifier
* Запустить проект используя docker-compose
```
docker-compose up -d
```
***
Проект покрыт тестами, которые выполняются при создании контейнера
***
Примеры запросов:
```
http://127.0.0.1/
```
```
http://127.0.0.1/item?id=13719368
```