Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company đŸ‘‡

feat(monitor/collectors/wikipedia): goquery-backed ITN parser (revid + entries with article slugs)

CarterPerez-dev85626a0e11a6
diff --git a/PROJECTS/advanced/monitor-the-situation-dashboard/backend/go.mod b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/go.mod
index fbb03443..ecf3a902 100644
--- a/PROJECTS/advanced/monitor-the-situation-dashboard/backend/go.mod
+++ b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/go.mod
@@ -23,7 +23,7 @@ require (
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0
go.opentelemetry.io/otel/sdk v1.35.0
go.opentelemetry.io/otel/trace v1.41.0
- golang.org/x/crypto v0.48.0
+ golang.org/x/crypto v0.49.0
golang.org/x/time v0.14.0
google.golang.org/grpc v1.68.1
)
@@ -32,6 +32,8 @@ require (
dario.cat/mergo v1.0.2 // indirect
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
+ github.com/PuerkitoBio/goquery v1.12.0 // indirect
+ github.com/andybalholm/cascadia v1.3.3 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/containerd/errdefs v1.0.0 // indirect
@@ -105,10 +107,10 @@ require (
go.opentelemetry.io/otel/metric v1.41.0 // indirect
go.opentelemetry.io/proto/otlp v1.4.0 // indirect
go.yaml.in/yaml/v3 v3.0.3 // indirect
- golang.org/x/net v0.49.0 // indirect
+ golang.org/x/net v0.52.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.42.0 // indirect
- golang.org/x/text v0.34.0 // indirect
+ golang.org/x/text v0.35.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect
google.golang.org/protobuf v1.36.8 // indirect
diff --git a/PROJECTS/advanced/monitor-the-situation-dashboard/backend/go.sum b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/go.sum
index cafc7d97..66b233ad 100644
--- a/PROJECTS/advanced/monitor-the-situation-dashboard/backend/go.sum
+++ b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/go.sum
@@ -8,6 +8,10 @@ github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEK
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
+github.com/PuerkitoBio/goquery v1.12.0 h1:pAcL4g3WRXekcB9AU/y1mbKez2dbY2AajVhtkO8RIBo=
+github.com/PuerkitoBio/goquery v1.12.0/go.mod h1:802ej+gV2y7bbIhOIoPY5sT183ZW0YFofScC4q/hIpQ=
+github.com/andybalholm/cascadia v1.3.3 h1:AG2YHrzJIm4BZ19iwJ/DAua6Btl3IwJX+VI4kktS1LM=
+github.com/andybalholm/cascadia v1.3.3/go.mod h1:xNd9bqTn98Ln4DwST8/nG+H0yuB8Hmgu1YHNnWw0GeA=
github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs=
github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c=
github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA=
@@ -79,6 +83,7 @@ github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PU
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
@@ -206,6 +211,7 @@ github.com/tklauser/numcpus v0.11.0 h1:nSTwhKH5e1dMNsCdVBukSZrURJRoHbSEQjdEbY+9R
github.com/tklauser/numcpus v0.11.0/go.mod h1:z+LwcLq54uWZTX0u/bGobaV34u6V7KNlTZejzM6/3MQ=
github.com/valyala/fastjson v1.6.4 h1:uAUNq9Z6ymTgGhcm0UynUAB6tlbakBrz6CQFax3BXVQ=
github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
+github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0=
github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
@@ -232,23 +238,93 @@ go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.yaml.in/yaml/v3 v3.0.3 h1:bXOww4E/J3f66rav3pX3m8w6jDE4knZjGOw8b5Y6iNE=
go.yaml.in/yaml/v3 v3.0.3/go.mod h1:tBHosrYAkRZjRAOREWbDnBXUf08JOwYq++0QNwQiWzI=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
+golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
+golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
+golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
+golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts=
golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos=
+golang.org/x/crypto v0.49.0 h1:+Ng2ULVvLHnJ/ZFEq4KdcDd/cfjrrjjNSXNzxg0Y4U4=
+golang.org/x/crypto v0.49.0/go.mod h1:ErX4dUh2UM+CFYiXZRTcMpEcN8b/1gxEuv3nODoYtCA=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
+golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
+golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
+golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
+golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
+golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
+golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
+golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
+golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
+golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
+golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
golang.org/x/net v0.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o=
golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8=
+golang.org/x/net v0.52.0 h1:He/TN1l0e4mmR3QqHMT2Xab3Aj3L9qjbhRm78/6jrW0=
+golang.org/x/net v0.52.0/go.mod h1:R1MAz7uMZxVMualyPXb+VaqGSa3LIaUqk0eEt3w36Sw=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
+golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
+golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
+golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo=
golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
+golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
+golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
+golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
+golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
+golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
+golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM=
golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg=
golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM=
+golang.org/x/term v0.41.0 h1:QCgPso/Q3RTJx2Th4bDLqML4W6iJiaXFq2/ftQF13YU=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
+golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
+golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
+golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
+golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
+golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
+golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk=
golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA=
+golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8=
+golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA=
golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI=
golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
+golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
+golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q=
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576/go.mod h1:1R3kvZ1dtP3+4p4d3G8uJ8rFk/fWlScl38vanWACI08=
diff --git a/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/parser.go b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/parser.go
new file mode 100644
index 00000000..8c65ffce
--- /dev/null
+++ b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/parser.go
@@ -0,0 +1,77 @@
+// ©AngelaMos | 2026
+// parser.go
+
+package wikipedia
+
+import (
+ "encoding/json"
+ "fmt"
+ "strings"
+
+ "github.com/PuerkitoBio/goquery"
+)
+
+type Response struct {
+ RevID int64
+ HTML string
+}
+
+type ITNEntry struct {
+ Text string
+ ArticleSlug string
+}
+
+type rawAPI struct {
+ Parse struct {
+ Title string `json:"title"`
+ RevID int64 `json:"revid"`
+ Text struct {
+ Star string `json:"*"`
+ } `json:"text"`
+ } `json:"parse"`
+}
+
+func DecodeResponse(body []byte) (Response, error) {
+ var r rawAPI
+ if err := json.Unmarshal(body, &r); err != nil {
+ return Response{}, fmt.Errorf("decode wikipedia response: %w", err)
+ }
+ return Response{RevID: r.Parse.RevID, HTML: r.Parse.Text.Star}, nil
+}
+
+func ParseEntries(html string) []ITNEntry {
+ if strings.TrimSpace(html) == "" {
+ return nil
+ }
+ doc, err := goquery.NewDocumentFromReader(strings.NewReader(html))
+ if err != nil {
+ return nil
+ }
+ var out []ITNEntry
+ doc.Find("ul li").Each(func(_ int, s *goquery.Selection) {
+ text := strings.TrimSpace(s.Text())
+ if text == "" {
+ return
+ }
+ entry := ITNEntry{Text: text}
+ if href, ok := s.Find("a").First().Attr("href"); ok {
+ if slug := slugFromHref(href); slug != "" {
+ entry.ArticleSlug = slug
+ }
+ }
+ out = append(out, entry)
+ })
+ return out
+}
+
+func slugFromHref(href string) string {
+ const prefix = "/wiki/"
+ if !strings.HasPrefix(href, prefix) {
+ return ""
+ }
+ slug := strings.TrimPrefix(href, prefix)
+ if hash := strings.Index(slug, "#"); hash >= 0 {
+ slug = slug[:hash]
+ }
+ return slug
+}
diff --git a/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/parser_test.go b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/parser_test.go
new file mode 100644
index 00000000..ea0d46d7
--- /dev/null
+++ b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/parser_test.go
@@ -0,0 +1,58 @@
+// ©AngelaMos | 2026
+// parser_test.go
+
+package wikipedia_test
+
+import (
+ "os"
+ "testing"
+
+ "github.com/stretchr/testify/require"
+
+ "github.com/carterperez-dev/monitor-the-situation/backend/internal/collectors/wikipedia"
+)
+
+func TestParser_ExtractsITNEntriesFromFixture(t *testing.T) {
+ body, err := os.ReadFile("testdata/itn_response.json")
+ require.NoError(t, err)
+
+ resp, err := wikipedia.DecodeResponse(body)
+ require.NoError(t, err)
+ require.NotZero(t, resp.RevID)
+
+ entries := wikipedia.ParseEntries(resp.HTML)
+ require.GreaterOrEqual(t, len(entries), 1)
+ for _, e := range entries {
+ require.NotEmpty(t, e.Text)
+ }
+ hasLink := false
+ for _, e := range entries {
+ if e.ArticleSlug != "" {
+ hasLink = true
+ break
+ }
+ }
+ require.True(t, hasLink, "at least one entry should carry an article slug")
+}
+
+func TestParser_HandlesEmptyHTML(t *testing.T) {
+ entries := wikipedia.ParseEntries("")
+ require.Empty(t, entries)
+}
+
+func TestParser_StripsHTMLTagsFromText(t *testing.T) {
+ entries := wikipedia.ParseEntries(`<ul><li>Plain <b>bold</b> headline with <a href="/wiki/Topic">link</a>.</li></ul>`)
+ require.Len(t, entries, 1)
+ require.Contains(t, entries[0].Text, "Plain")
+ require.Contains(t, entries[0].Text, "bold")
+ require.Contains(t, entries[0].Text, "link")
+ require.NotContains(t, entries[0].Text, "<b>")
+ require.Equal(t, "Topic", entries[0].ArticleSlug)
+}
+
+func TestParser_SkipsListItemsWithoutLinks(t *testing.T) {
+ entries := wikipedia.ParseEntries(`<ul><li>Has <a href="/wiki/Foo">link</a></li><li>No link here</li></ul>`)
+ require.Len(t, entries, 2)
+ require.Equal(t, "Foo", entries[0].ArticleSlug)
+ require.Empty(t, entries[1].ArticleSlug)
+}
diff --git a/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/testdata/itn_response.json b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/testdata/itn_response.json
new file mode 100644
index 00000000..365f36b6
--- /dev/null
+++ b/PROJECTS/advanced/monitor-the-situation-dashboard/backend/internal/collectors/wikipedia/testdata/itn_response.json
@@ -0,0 +1 @@
+{"parse":{"title":"Template:In the news","pageid":482256,"revid":1352110642,"text":{"*":"<div class=\"mw-content-ltr mw-parser-output\" lang=\"en\" dir=\"ltr\"><style data-mw-deduplicate=\"TemplateStyles:r1053378754\">.mw-parser-output .itn-img{float:right;margin-left:0.5em;margin-top:0.2em}</style><div role=\"figure\" class=\"itn-img\">\n<div class=\"thumbinner mp-thumb\" style=\"background: transparent; color: inherit; border: none; padding: 0; max-width: 129px;\">\n<span typeof=\"mw:File\"><a href=\"/wiki/File:Sabastian_Sawe_(KEN)_2025.jpg\" class=\"mw-file-description\" title=\"Sabastian Sawe in 2025\"><img alt=\"Sabastian Sawe in 2025\" src=\"//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Sabastian_Sawe_%28KEN%29_2025.jpg/250px-Sabastian_Sawe_%28KEN%29_2025.jpg\" decoding=\"async\" width=\"129\" height=\"153\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Sabastian_Sawe_%28KEN%29_2025.jpg/330px-Sabastian_Sawe_%28KEN%29_2025.jpg 2x\" data-file-width=\"1912\" data-file-height=\"2262\" /></a></span><div class=\"thumbcaption\" style=\"padding: 0.25em 0; word-wrap: break-word; text-align: left;\">Sabastian Sawe</div></div>\n</div>\n<ul><li><b><a href=\"/wiki/2026_Bekasi_train_crash\" title=\"2026 Bekasi train crash\">A train crash</a></b> near <a href=\"/wiki/Jakarta\" title=\"Jakarta\">Jakarta</a>, Indonesia, kills at least 16 people and injures 91 others.</li>\n<li>In <b><a href=\"/wiki/2026_London_Marathon\" title=\"2026 London Marathon\">the London Marathon</a></b>, <a href=\"/wiki/Sabastian_Sawe\" title=\"Sabastian Sawe\">Sabastian Sawe</a> <i>(pictured)</i> and <a href=\"/wiki/Tigst_Assefa\" title=\"Tigst Assefa\">Tigst Assefa</a> win the men's and women's races, both setting <a href=\"/wiki/Marathon_world_record_progression\" title=\"Marathon world record progression\">world record times</a>.</li>\n<li>In Mali, the <a href=\"/wiki/Azawad_Liberation_Front\" title=\"Azawad Liberation Front\">Azawad Liberation Front</a> and <a href=\"/wiki/Jama%27at_Nusrat_al-Islam_wal-Muslimin\" title=\"Jama&#39;at Nusrat al-Islam wal-Muslimin\">Jama'at Nusrat al-Islam wal-Muslimin</a> launch <b><a href=\"/wiki/2026_Mali_offensives\" title=\"2026 Mali offensives\">a joint offensive</a></b> against the government.</li>\n<li>The <a href=\"/wiki/Progressive_Bulgaria\" title=\"Progressive Bulgaria\">Progressive Bulgaria</a> coalition, led by former president <a href=\"/wiki/Rumen_Radev\" title=\"Rumen Radev\">Rumen Radev</a>, wins a majority of the <a href=\"/wiki/National_Assembly_(Bulgaria)\" title=\"National Assembly (Bulgaria)\">National Assembly</a> in <b><a href=\"/wiki/2026_Bulgarian_parliamentary_election\" title=\"2026 Bulgarian parliamentary election\">the parliamentary election</a></b>, in a bid to end <a href=\"/wiki/Bulgarian_political_crisis_(2021%E2%80%93present)\" title=\"Bulgarian political crisis (2021\u2013present)\">the ongoing Bulgarian political crisis</a>.</li></ul>\n<div class=\"itn-footer\" style=\"margin-top: 0.5em;\">\n<div><b>Ongoing</b>: <style data-mw-deduplicate=\"TemplateStyles:r1333133064\">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:\": \"}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:\"\\a0 \u00b7 \";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:\" (\";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:\")\";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:\" \"counter(listitem)\"\\a0 \"}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:\" (\"counter(listitem)\"\\a0 \"}</style><div class=\"hlist inline\">\n<ul><li><a href=\"/wiki/2026_Afghanistan%E2%80%93Pakistan_war\" title=\"2026 Afghanistan\u2013Pakistan war\">Afghanistan\u2013Pakistan war</a></li>\n<li><a href=\"/wiki/2026_Iran_war\" title=\"2026 Iran war\">Iran war</a> (<a href=\"/wiki/2026_Lebanon_war\" title=\"2026 Lebanon war\">Lebanon war</a>)</li>\n<li><a href=\"/wiki/Russo-Ukrainian_war_(2022%E2%80%93present)\" title=\"Russo-Ukrainian war (2022\u2013present)\">Russo-Ukrainian war</a>\n<ul><li><a href=\"/wiki/Timeline_of_the_Russo-Ukrainian_war_(1_January_2026_%E2%80%93_present)\" title=\"Timeline of the Russo-Ukrainian war (1 January 2026 \u2013 present)\">timeline</a></li></ul></li>\n<li><a href=\"/wiki/Sudanese_civil_war_(2023%E2%80%93present)\" title=\"Sudanese civil war (2023\u2013present)\">Sudanese civil war</a>\n<ul><li><a href=\"/wiki/Timeline_of_the_Sudanese_civil_war_(2026)\" title=\"Timeline of the Sudanese civil war (2026)\">timeline</a></li></ul></li></ul></div></div>\n<div><b><a href=\"/wiki/Deaths_in_2026\" title=\"Deaths in 2026\">Recent deaths</a></b>&#58; <link rel=\"mw-deduplicated-inline-style\" href=\"mw-data:TemplateStyles:r1333133064\" /><div class=\"hlist inline\">\n<ul><li><a href=\"/wiki/Bill_Grayden\" title=\"Bill Grayden\">Bill Grayden</a></li>\n<li><a href=\"/wiki/Jade_Kops\" title=\"Jade Kops\">Jade Kops</a></li>\n<li><a href=\"/wiki/Edith_Eger\" title=\"Edith Eger\">Edith Eger</a></li>\n<li><span class=\"nowrap\"><a href=\"/wiki/Jean-Bernard_Pommier\" title=\"Jean-Bernard Pommier\">Jean-Bernard Pommier</a></span></li>\n<li><a href=\"/wiki/Jaan_Puhvel\" title=\"Jaan Puhvel\">Jaan Puhvel</a></li>\n<li><a href=\"/wiki/Sadio_Camara\" title=\"Sadio Camara\">Sadio Camara</a></li></ul></div></div></div>\n<link rel=\"mw-deduplicated-inline-style\" href=\"mw-data:TemplateStyles:r1333133064\" /><div class=\"hlist itn-footer noprint\" style=\"text-align:right;\">\n<ul><li><b><a href=\"/wiki/Portal:Current_events\" title=\"Portal:Current events\">More current events</a></b></li>\n<li><b><a href=\"/wiki/Wikipedia:In_the_news/Candidates\" title=\"Wikipedia:In the news/Candidates\">Nominate an article</a></b></li></ul>\n</div>\n<style data-mw-deduplicate=\"TemplateStyles:r1314631099\">.mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid var(--border-color-base,#a2a9b1);background-color:#ecfcf4;color:inherit;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid var(--border-color-base,#a2a9b1);margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .documentation,html.skin-theme-clientpref-night .mw-parser-output .documentation-metadata{background-color:#0b1e1c;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .documentation,html.skin-theme-clientpref-os .mw-parser-output .documentation-metadata{background-color:#0b1e1c;color:inherit}}</style><div class=\"documentation-container\" role=\"complementary\" aria-labelledby=\"documentation-heading\">\n<div class=\"documentation\">\n<div class=\"documentation-startbox\">\n<span class=\"documentation-heading\" id=\"documentation-heading\"><span typeof=\"mw:File\"><span><img alt=\"\" src=\"//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/60px-Test_Template_Info-Icon_-_Version_%282%29.svg.png\" decoding=\"async\" width=\"50\" height=\"22\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/120px-Test_Template_Info-Icon_-_Version_%282%29.svg.png 2x\" data-file-width=\"1792\" data-file-height=\"800\" /></span></span> Template documentation</span><span class=\"mw-editsection-like plainlinks\">&#91;<a href=\"/wiki/Template:In_the_news/doc\" title=\"Template:In the news/doc\">view</a>&#93; &#91;<a href=\"/wiki/Special:EditPage/Template:In_the_news/doc\" title=\"Special:EditPage/Template:In the news/doc\">edit</a>&#93; &#91;<a href=\"/wiki/Special:PageHistory/Template:In_the_news/doc\" title=\"Special:PageHistory/Template:In the news/doc\">history</a>&#93; &#91;<a href=\"/wiki/Special:Purge/Template:In_the_news\" title=\"Special:Purge/Template:In the news\">purge</a>&#93;</span></div>\n<style data-mw-deduplicate=\"TemplateStyles:r1308393816\">.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style><table class=\"plainlinks ombox ombox-protection\" role=\"presentation\"><tbody><tr><td class=\"mbox-image\"><span typeof=\"mw:File\"><span><img alt=\"\" src=\"//upload.wikimedia.org/wikipedia/en/thumb/0/0f/Cascade-protection-shackle.svg/40px-Cascade-protection-shackle.svg.png\" decoding=\"async\" width=\"40\" height=\"40\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/en/thumb/0/0f/Cascade-protection-shackle.svg/120px-Cascade-protection-shackle.svg.png 2x\" data-file-width=\"512\" data-file-height=\"512\" /></span></span></td><td class=\"mbox-text\">This template can only be edited by <a href=\"/wiki/Wikipedia:Administrators\" title=\"Wikipedia:Administrators\">administrators</a> because it is <a href=\"/wiki/Help:Transclusion\" title=\"Help:Transclusion\">transcluded</a> onto one or more <a href=\"/wiki/Wikipedia:Protection_policy#Cascading_protection\" title=\"Wikipedia:Protection policy\">cascade-protected</a> pages.</td></tr></tbody></table>\n<link rel=\"mw-deduplicated-inline-style\" href=\"mw-data:TemplateStyles:r1333133064\" /><style data-mw-deduplicate=\"TemplateStyles:r1126788409\">.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}</style><style data-mw-deduplicate=\"TemplateStyles:r1246091330\">.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}</style><style data-mw-deduplicate=\"TemplateStyles:r1238256153\">.mw-parser-output .itnbox{width:auto}.mw-parser-output .itnbox-title-default{background:#efefef;font-size:1em}.mw-parser-output .itnbox-title-talkspace{background:#ffefde;font-size:1em}.mw-parser-output .itnbox .sidebar-navbar{padding:0 3px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .itnbox-title-default{background:#313335}html.skin-theme-clientpref-night .mw-parser-output .itnbox-title-talkspace{background:#241200}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .itnbox-title-default{background:#313335}html.skin-theme-clientpref-os .mw-parser-output .itnbox-title-talkspace{background:#241200}}</style><table class=\"sidebar nomobile nowraplinks itnbox\" role=\"navigation\"><tbody><tr><th class=\"sidebar-title itnbox-title-default\"><span typeof=\"mw:File\"><a href=\"/wiki/Wikipedia:In_the_news/Candidates\" title=\"Wikipedia:In the news/Candidates\"><img alt=\"Click here to nominate an item for In the news.\" src=\"//upload.wikimedia.org/wikipedia/commons/thumb/9/98/Ambox_current_red.svg/20px-Ambox_current_red.svg.png\" decoding=\"async\" width=\"15\" height=\"12\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/9/98/Ambox_current_red.svg/40px-Ambox_current_red.svg.png 2x\" data-file-width=\"360\" data-file-height=\"290\" /></a></span>\n<a class=\"mw-selflink selflink\">In the news</a> toolbox</th></tr><tr><td class=\"sidebar-content plainlist\">\n<ul><li><b><a href=\"/wiki/Wikipedia:Main_Page/Errors#Errors_with_&quot;In_the_news&quot;\" title=\"Wikipedia:Main Page/Errors\">Error reports</a></b></li>\n<li><b><a href=\"/wiki/Wikipedia:In_the_news/Candidates\" title=\"Wikipedia:In the news/Candidates\">Nominations</a></b></li>\n<li><b>History</b> <span style=\"font-size: 85%;\">(<b><a href=\"/wiki/Wikipedia:In_the_news/Posted/Archives\" title=\"Wikipedia:In the news/Posted/Archives\">Posts</a></b> \u00b7 <b><a href=\"/wiki/Wikipedia:In_the_news/Candidates/Archives\" title=\"Wikipedia:In the news/Candidates/Archives\">Nominations</a></b>)</span></li>\n<li><b><a href=\"/wiki/Wikipedia_talk:In_the_news\" title=\"Wikipedia talk:In the news\">Discussion</a></b></li>\n<li><b><a href=\"/wiki/Wikipedia:In_the_news\" title=\"Wikipedia:In the news\">General criteria</a></b></li>\n<li><b><a href=\"/wiki/Wikipedia:In_the_news/Recent_deaths\" title=\"Wikipedia:In the news/Recent deaths\">Death criteria</a></b></li>\n<li><b><a href=\"/wiki/Wikipedia:In_the_news/Recurring_items\" title=\"Wikipedia:In the news/Recurring items\">Recurring items</a></b></li>\n<li><b><a href=\"/wiki/Wikipedia:In_the_news/Administrator_instructions\" title=\"Wikipedia:In the news/Administrator instructions\">Admin guide</a></b></li>\n<li><b><a href=\"/wiki/Wikipedia:Main_Page/Commons_media_protection\" title=\"Wikipedia:Main Page/Commons media protection\">Image protection</a></b></li>\n<li><b><a href=\"/wiki/Portal:Current_events\" title=\"Portal:Current events\">Current events portal</a></b></li></ul></td>\n</tr><tr><td class=\"sidebar-navbar\"><link rel=\"mw-deduplicated-inline-style\" href=\"mw-data:TemplateStyles:r1333133064\" /><style data-mw-deduplicate=\"TemplateStyles:r1239400231\">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:\"[ \"}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:\" ]\"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class=\"navbar plainlinks hlist navbar-mini\"><ul><li class=\"nv-view\"><a href=\"/wiki/Template:ITNbox\" title=\"Template:ITNbox\"><abbr title=\"View this template\">v</abbr></a></li><li class=\"nv-talk\"><a href=\"/wiki/Template_talk:ITNbox\" title=\"Template talk:ITNbox\"><abbr title=\"Discuss this template\">t</abbr></a></li><li class=\"nv-edit\"><a href=\"/wiki/Special:EditPage/Template:ITNbox\" title=\"Special:EditPage/Template:ITNbox\"><abbr title=\"Edit this template\">e</abbr></a></li></ul></div></td></tr></tbody></table><style data-mw-deduplicate=\"TemplateStyles:r1314910889\">.mw-parser-output .module-shortcutboxplain{float:right;margin:0 0 0 1em;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-base,#fff);padding:0.3em 0.6em 0.2em 0.6em;text-align:center;font-size:85%}.mw-parser-output .module-shortcutboxleft{float:left;margin:0 1em 0 0}.mw-parser-output .module-shortcutlist{display:inline-block;border-bottom:1px solid var(--border-color-base,#a2a9b1);margin-bottom:0.2em}.mw-parser-output .module-shortcutboxplain ul{font-weight:bold}.mw-parser-output .module-shortcutanchordiv{position:relative;top:-3em}.mw-parser-output li .module-shortcutanchordiv{float:right}.mw-parser-output .mbox-imageright .module-shortcutboxplain{padding:0.4em 1em;line-height:1.3;margin:0;float:initial}</style><div class=\"module-shortcutanchordiv\"><span id=\"T:ITN\"></span></div><div class=\"module-shortcutboxplain noprint\" role=\"note\"><div class=\"module-shortcutlist\"><a href=\"/wiki/Wikipedia:Shortcut\" title=\"Wikipedia:Shortcut\">Shortcut</a></div><link rel=\"mw-deduplicated-inline-style\" href=\"mw-data:TemplateStyles:r1126788409\" /><div class=\"plainlist\"><ul><li><span class=\"plainlinks\"><a class=\"external text\" data-mw-original-href=\"//en.wikipedia.org/w/index.php?title=T:ITN&amp;redirect=no\" href=\"https://en.wikipedia.org/w/index.php?title=T:ITN&amp;redirect=no\">T:ITN</a></span><span style=\"display: none\"><a href=\"/wiki/T:ITN\" class=\"mw-redirect\" title=\"T:ITN\">T:ITN</a></span></li></ul></div></div>\n<link rel=\"mw-deduplicated-inline-style\" href=\"mw-data:TemplateStyles:r1308393816\" /><table class=\"plainlinks ombox ombox-notice\" role=\"presentation\"><tbody><tr><td class=\"mbox-image\"><span typeof=\"mw:File\"><a href=\"/wiki/File:Logo_wikibot.svg\" class=\"mw-file-description\"><img alt=\"icon\" src=\"//upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Logo_wikibot.svg/60px-Logo_wikibot.svg.png\" decoding=\"async\" width=\"50\" height=\"50\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Logo_wikibot.svg/120px-Logo_wikibot.svg.png 2x\" data-file-width=\"108\" data-file-height=\"108\" /></a></span></td><td class=\"mbox-text\"><b>This template is used by one or more <a href=\"/wiki/Wikipedia:Bots\" title=\"Wikipedia:Bots\">bots</a>.</b><br />If you intend to change this template in any significant way, move it, or nominate it for deletion, please inform the bot operators. Thank you. The relevant bots are: <a href=\"/wiki/User:KiranBOT\" title=\"User:KiranBOT\">KiranBOT</a></td></tr></tbody></table>\n<style data-mw-deduplicate=\"TemplateStyles:r1320445320\">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role=\"note\" class=\"hatnote navigation-not-searchable\">For a talk-page template to indicate that a Wikipedia page has been mentioned by a media organisation, see <a href=\"/wiki/Template:Press\" title=\"Template:Press\">Template:Press</a>.</div>\n<p>\"<b>In the news</b>\" mentions and links to <i>entries of timely interest</i> &#8211; <i><a href=\"/wiki/Encyclopedia\" title=\"Encyclopedia\">encyclopedia</a> articles</i> that have been <i>updated</i> to reflect an important <a href=\"/wiki/Portal:Current_events\" title=\"Portal:Current events\">current event</a> &#8211; rather than conventional <i>news items</i>. To prevent <a href=\"/wiki/Wikipedia:Vandalism\" title=\"Wikipedia:Vandalism\">vandalism</a> on the <a href=\"/wiki/Main_Page\" title=\"Main Page\">Main Page</a>, it is a <a href=\"/wiki/Wikipedia:List_of_indefinitely_protected_pages\" title=\"Wikipedia:List of indefinitely protected pages\">permanently protected template</a>. See <a href=\"/wiki/Wikipedia:In_the_news\" title=\"Wikipedia:In the news\">Wikipedia:In the news</a> for more details. \n</p><p>See an error? Please note it on <a href=\"/wiki/Wikipedia:Main_Page/Errors\" title=\"Wikipedia:Main Page/Errors\">Wikipedia:Main Page/Errors</a> for administrator assistance.\n</p><p>The template accepts one parameter: adding <code>|nocurrenteventslink=1</code> removes the link to <a href=\"/wiki/Portal:Current_events\" title=\"Portal:Current events\">Portal:Current events</a>. This is used on the current events page to hide the link there.\n</p><p>Admins: After updating please <a class=\"external text\" data-mw-original-href=\"//en.wikipedia.org/w/index.php?title=Main_Page&amp;action=purge\" href=\"https://en.wikipedia.org/w/index.php?title=Main_Page&amp;action=purge\">purge the cache of the Main Page</a> so that the updated version appears.\n</p><p>In terms of <a href=\"/wiki/Wikipedia:ITNBALANCE\" class=\"mw-redirect\" title=\"Wikipedia:ITNBALANCE\">Main Page balance</a>, right now we're configured for <a href=\"/wiki/Widescreen\" title=\"Widescreen\">widescreen</a> monitors, which it appears most editors use. Non-widescreen users, please do not change the balance even if it looks off on your monitor.\n</p><p><a class=\"external text\" data-mw-original-href=\"//en.wikipedia.org/w/index.php?title=Template:In_the_news&amp;action=purge\" href=\"https://en.wikipedia.org/w/index.php?title=Template:In_the_news&amp;action=purge\">Click here to purge the template's cache manually, if it does not appear to be updating on the Main Page after you edit it.</a>\n</p>\n<section class=\"mw-templatedata-doc-wrap\"><header><p class=\"mw-templatedata-doc-desc\">Main page template. \"In the news\" mentions and links to entries of timely interest \u2013 encyclopedia articles that have been updated to reflect an important current event \u2013 rather than conventional news items. To prevent vandalism on the Main Page, it is a permanently protected template. See [[Wikipedia:In the news]] for more details.</p></header><table class=\"wikitable mw-templatedata-doc-params\"><caption><p class=\"mw-templatedata-caption\">Template parameters<span class=\"mw-editsection-like\"><span class=\"mw-editsection-bracket\">[</span><a href=\"/w/index.php?title=Template:In_the_news/doc&amp;action=edit&amp;templatedata=edit\" title=\"Template:In the news/doc\">Edit template data</a><span class=\"mw-editsection-bracket\">]</span></span></p></caption><thead><tr><th colspan=\"2\">Parameter</th><th>Description</th><th>Type</th><th>Status</th></tr></thead><tbody><tr><th>No 'Current events' link</th><td class=\"mw-templatedata-doc-param-name\"><code>nocurrenteventslink</code></td><td><p>Removes the link to [[Portal:Current events]]. This is used on the current events page to hide the link there</p><dl><dt>Example</dt><dd>1</dd><dt>Auto value</dt><dd><code>1</code></dd></dl></td><td class=\"mw-templatedata-doc-param-type\">Boolean</td><td class=\"mw-templatedata-doc-param-status-optional\" data-sort-value=\"0\">optional</td></tr></tbody></table></section>\n<div class=\"documentation-clear\"></div>\n</div>\n<div role=\"note\" class=\"documentation-metadata plainlinks\">The above <a href=\"/wiki/Wikipedia:Template_documentation\" title=\"Wikipedia:Template documentation\">documentation</a> is <a href=\"/wiki/Help:Transclusion\" title=\"Help:Transclusion\">transcluded</a> from <a href=\"/wiki/Template:In_the_news/doc\" title=\"Template:In the news/doc\">Template:In the news/doc</a>. <span class=\"documentation-toolbar\">(<a href=\"/wiki/Special:EditPage/Template:In_the_news/doc\" title=\"Special:EditPage/Template:In the news/doc\">edit</a> &#124; <a href=\"/wiki/Special:PageHistory/Template:In_the_news/doc\" title=\"Special:PageHistory/Template:In the news/doc\">history</a>)</span><br />Editors can experiment in this template's <a href=\"/wiki/Template:In_the_news/sandbox\" title=\"Template:In the news/sandbox\">sandbox</a> <span class=\"documentation-toolbar\">(<a href=\"/wiki/Special:EditPage/Template:In_the_news/sandbox\" title=\"Special:EditPage/Template:In the news/sandbox\">edit</a> &#124; <a class=\"external text\" href=\"https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&amp;page1=Template%3AIn+the+news&amp;page2=Template%3AIn+the+news%2Fsandbox\">diff</a>)</span> and <a href=\"/wiki/Template:In_the_news/testcases\" title=\"Template:In the news/testcases\">testcases</a> <span class=\"documentation-toolbar\">(<a href=\"/wiki/Special:EditPage/Template:In_the_news/testcases\" title=\"Special:EditPage/Template:In the news/testcases\">edit</a>)</span> pages.<br />Add categories to the <a href=\"/wiki/Template:In_the_news/doc\" title=\"Template:In the news/doc\">/doc</a> subpage. <a href=\"/wiki/Special:PrefixIndex/Template:In_the_news/\" title=\"Special:PrefixIndex/Template:In the news/\">Subpages of this template</a>.</div></div>\n\n<!-- \nNewPP limit report\nParsed by mw\u2010api\u2010ext.eqiad.main\u2010bc6b54c64\u2010zr9d6\nCached time: 20260502080127\nCache expiry: 3526\nCache expiry source: Template:Ambox_globe (#time)\nReduced expiry: true\nComplications: [vary\u2010revision\u2010sha1, mw\u2010EnableOOUI]\nCPU time usage: 0.260 seconds\nReal time usage: 0.427 seconds\nPreprocessor visited node count: 597/1000000\nRevision size: 2349/2097152 bytes\nPost\u2010expand include size: 32475/2097152 bytes\nTemplate argument size: 2016/2097152 bytes\nHighest expansion depth: 15/100\nExpensive parser function count: 7/500\nUnstrip recursion depth: 0/20\nUnstrip post\u2010expand size: 25241/5000000 bytes\nLua time usage: 0.135/10.000 seconds\nLua memory usage: 2497227/52428800 bytes\nNumber of Wikibase entities loaded: 0/500\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00% 303.606 1 -total\n 71.22% 216.215 1 Template:Documentation\n 55.83% 169.514 1 Template:In_the_news/doc\n 24.84% 75.406 1 Template:ITNbox\n 24.10% 73.159 1 Template:Sidebar\n 17.24% 52.332 1 Template:In_the_news/footer\n 15.17% 46.055 3 Template:Flatlist\n 14.47% 43.927 2 Template:Mbox\n 11.51% 34.947 1 Template:Main_page_image/ITN\n 9.79% 29.724 1 Template:Cascade-protected_template\n-->\n\n<!-- Render ID 1ebdef03-45fd-11f1-87d6-83d59b994b6b -->\n\n<!-- Saved in parser cache with key enwiki:pcache:482256:|#|:idhash:canonical and timestamp 20260502080127 and revision id 1352110642. Rendering was triggered because: api-parse\n -->\n</div>"}}}