Ruby source code Show more
# Prints number of users across Mastodon instances
require 'open-uri'require 'nokogiri'
doc=Nokogiri(open('https://instances.mastodon.xyz/').read)
puts doc.css('tr').map { |tr| td = tr.css('td')[1] (td && td.text).to_i}.inject(:+)
@plexus thanks for the content warning! Ruby syntax considered nsfw?
@pesterhazy seemed friendlier than just shoving a blob of code in people's timeline
The original server operated by the Mastodon gGmbH non-profit
@pesterhazy seemed friendlier than just shoving a blob of code in people's timeline