mirror of
https://github.com/gSpotx2f/ruantiblock_openwrt.git
synced 2026-05-14 22:50:58 +00:00
Created Python‑модуль (markdown)
+28
@@ -0,0 +1,28 @@
|
|||||||
|
Дополнительный модуль-парсер, написан на Python3. Более экономно расходует оперативную память и, в целом, работает стабильнее чем Lua. Не использует внешних утилит для преобразования текста (iconv, idn). Предпочтителен в ситуации нехватки оперативной памяти - скорость работы почти такая же как у lua-модуля, но системных ресурсов потребляет меньше, в условиях большого объёма данных...
|
||||||
|
|
||||||
|
**1. Установка зависимостей:**
|
||||||
|
|
||||||
|
opkg update
|
||||||
|
opkg install python3 python3-setuptools python3-openssl
|
||||||
|
|
||||||
|
**2. Скачивание файлов и установка прав доступа:**
|
||||||
|
|
||||||
|
mkdir -p /usr/lib/python3.7
|
||||||
|
wget --no-check-certificate -O /usr/bin/ruab_parser.py https://raw.githubusercontent.com/gSpotx2f/ruantiblock_openwrt/master/ruantiblock-mod-py/files/usr/bin/ruab_parser.py
|
||||||
|
wget --no-check-certificate -O /usr/lib/python3.7/ruab_sum_ip.py https://raw.githubusercontent.com/gSpotx2f/ruantiblock_openwrt/master/ruantiblock-mod-py/files/usr/lib/python3.7/ruab_sum_ip.py
|
||||||
|
chmod +x /usr/bin/ruab_parser.py
|
||||||
|
|
||||||
|
**3. Включение модуля:**
|
||||||
|
|
||||||
|
uci set ruantiblock.config.bllist_module="/usr/bin/ruab_parser.py"
|
||||||
|
uci commit ruantiblock
|
||||||
|
|
||||||
|
**4. Вывод статуса:**
|
||||||
|
|
||||||
|
В выводе статуса можно увидеть используемый модуль (`BLLIST_MODULE: /usr/bin/ruab_parser.py`):
|
||||||
|
|
||||||
|
/usr/bin/ruantiblock status
|
||||||
|
|
||||||
|
**5. Обновление для проверки:**
|
||||||
|
|
||||||
|
/usr/bin/ruantiblock update
|
||||||
Reference in New Issue
Block a user