Skip to content

jrobertson/mediawiki_table_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Scrapes the tables from a MediaWiki page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages