Low commit activity in last 3 years
No release in over a year
Scrapes the tables from a MediaWiki page.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.7, >= 0.7.0
 Project Readme

Introducing the MediaWiki_table_scraper gem

require 'mediawiki_table_scraper'

url = 'https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers'

a = MediaWikiTableScraper.new(url).to_a

Output (extract):

=> [
 {:port=>"0", :tcp=>"N/A", :udp=>"N/A", :description=>"In programming APIs (not in communication between hosts), requests a system-allocated (dynamic) port [3] [4]", :status=>"N/A"},
 {:port=>"0", :tcp=>"", :udp=>"UDP", :description=>"Reserved", :status=>"Official"},
 {:port=>"1", :tcp=>"TCP", :udp=>"UDP", :description=>"TCP Port Service Multiplexer  (TCPMUX)", :status=>"Official"},
 {:port=>"2", :tcp=>"TCP", :udp=>"UDP", :description=>"CompressNET [5]  Management Utility [6]", :status=>"Official"},
 {:port=>"3" ...

Resources

mediawiki wikipedia scraper table