add 38chan

This commit is contained in:
simon 2019-09-08 09:53:20 -04:00
parent 8cc4d60541
commit 012a7813ef
2 changed files with 14 additions and 3 deletions

View File

@ -5,7 +5,7 @@ image boards and publishes serialised JSON to RabbitMQ
for real-time ingest. for real-time ingest.
Compatible image boards: 4chan, lainchan, uboachan, Compatible image boards: 4chan, lainchan, uboachan,
22chan, wizchan, 1chan, 2ch.hk, endchan. 22chan, wizchan, 1chan, 2ch.hk, endchan, 38chan.
Can optionally push monitoring data to InfluxDB. Below is an Can optionally push monitoring data to InfluxDB. Below is an
example of Grafana being used to display it. example of Grafana being used to display it.

15
chan.py
View File

@ -242,7 +242,7 @@ CHANS = {
"news", "out", "po", "pol", "qst", "sci", "soc", "sp", "news", "out", "po", "pol", "qst", "sci", "soc", "sp",
"tg", "toy", "trv", "tv", "vp", "wsg", "wsr", "x" "tg", "toy", "trv", "tv", "vp", "wsg", "wsr", "x"
), ),
rps=2/3 rps=3/2
), ),
"lainchan": JsonChanHelper( "lainchan": JsonChanHelper(
2, 2,
@ -322,7 +322,7 @@ CHANS = {
"a", "fd", "ja", "ma", "vn", "fg", "fur", "gg", "ga", "a", "fd", "ja", "ma", "vn", "fg", "fur", "gg", "ga",
"vape", "h", "ho", "hc", "e", "fet", "sex", "fag" "vape", "h", "ho", "hc", "e", "fet", "sex", "fag"
), ),
rps=10 rps=1
), ),
"endchan": HtmlChanHelper( "endchan": HtmlChanHelper(
8, 8,
@ -345,4 +345,15 @@ CHANS = {
), ),
rps=1 rps=1
), ),
"38chan": JsonChanHelper(
9,
"http://38chan.net/",
"http://38chan.net/",
"/res/",
"/src/",
(
"a", "b", "g", "38"
),
rps=1 / 600
)
} }