https://github.com/vernette/plain2srs
https://github.com/vernette/plain2srs
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vernette/plain2srs
- Owner: vernette
- Created: 2024-10-19T13:08:15.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-07T08:29:48.000Z (9 months ago)
- Last Synced: 2025-04-04T01:51:06.207Z (8 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# plain2srs
## Installation
```bash
git clone git@github.com:vernette/plain2srs.git
cd plain2srs
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
## Usage
Print the help message:
```bash
./plain2srs.py -h
```
Generate JSON file from the antifilter list:
```bash
./plain2srs.py -o output_filename
```
Generate JSON file and compile an SRS file from a plain text file:
> [!NOTE]
> sing-box must be in the path to compile the SRS file
```bash
./plain2srs.py -i domains.txt -o output_filename -c
```