Skip to content

Commit

Permalink
adapted get_languages to new wikistats layout
Browse files Browse the repository at this point in the history
  • Loading branch information
athalhammer committed Nov 3, 2024
1 parent 1d60ac6 commit a90281f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/get_languages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if [ "$project" = "test" ]; then
result=$(printf "anp\nch\nmad\nty\n")
else
result=$(curl --retry-connrefused --retry 5 --retry-delay 60 -s "https://wikistats.wmcloud.org/display.php?t=$project" \
| sed -n 's;\(.*text\)\{2\}.*>\(.*\)</a>.*;\2;p' `# Parse wiki names` \
| sed -n 's;\(.*text\)\{2\}.*><a href="https://\(.*\).wikipedia.org/wiki/">.*</a>.*;\2;p' `# Parse wiki names` \
| sed "s/-/_/g" `# Replace "-" with "_"` \
| sed "s/be_tarask/be_x_old/" `# Manual fix for be_x_old` \
| sort)
Expand Down

0 comments on commit a90281f

Please sign in to comment.