Skip to content

Commit f305393

Browse files
authored
Update README.md
1 parent b851cc0 commit f305393

File tree

1 file changed

+60
-3
lines changed

1 file changed

+60
-3
lines changed

README.md

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,67 @@ Parameter block for restarting shadowsocks. If shadowsocks is not running as a s
3333
"servers"
3434
],
3535
```
36-
Section name in shadowsocks config file, where servers will be added. Your shadowsocks config file must contain this section even it has no servers configurations
37-
Exampl of shadowsocks config.json
36+
Section name in shadowsocks config file, where servers will be added. Your shadowsocks config file must contain this section even it has no servers configurations.
37+
38+
Example of shadowsocks config.json
3839
```
3940
{
40-
"local_adress"
41+
"local_adress":"0.0.0.0"
42+
...
43+
"servers":[
44+
{
45+
"server":"permanent_server"
46+
}
47+
...
48+
{
49+
"server":"temporary_server"
50+
}
51+
],
52+
"local_port":1234
53+
...
4154
}
4255
```
56+
57+
```
58+
"ssserverseditpos":1,
59+
```
60+
Position from which servers will be edited. In example above first server config will be save, other configs will be rewrite.
61+
```
62+
"sstimeoutdefault":0,
63+
```
64+
Default timeout. Ignored when zero
65+
```
66+
"outputfile":"/etc/sskeyparser/parsingresult.json",
67+
```
68+
Results of parsing is save to this file.
69+
```
70+
"links":[
71+
{
72+
"url":"https://t.me/some_channel_with_keys",
73+
"mask":[
74+
"ss://"
75+
],
76+
"configcount":3,
77+
"parsetoptobot":false
78+
},
79+
{
80+
"url":"https://www.some_site_with_keys.com/",
81+
"mask":[
82+
"ss://"
83+
],
84+
"configcount":1,
85+
"parsetoptobot":true
86+
}
87+
]
88+
```
89+
Links for parsing. In this section
90+
```
91+
"configcount"
92+
```
93+
how many configs do you want to extract from this page
94+
```
95+
"parsetoptobot"
96+
```
97+
if true parsing will done from top to bottom.
98+
- Use "true" for pages where new information placing at the top, like sites
99+
- Use "false" for pages where new information placing at the bottom, like telegram channels and some forums

0 commit comments

Comments
 (0)