Module: WebMole

Defined in:
lib/webmole.rb,
lib/webmole/crawler.rb,
lib/webmole/scraper.rb,
lib/webmole/version.rb,
lib/webmole/gathering_mode.rb,
lib/webmole/output_formatter.rb,
lib/webmole/user_agent_switcher.rb

Defined Under Namespace

Classes: Crawler, Error, GatheringMode, OutputFormatter, Scraper, UserAgentSwitcher

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/webmole.rb', line 24

def self.print_banner
  puts "__        __   _     __  __       _      \n\\ \\      / /__| |__ |  \\/  | ___ | | ___ \n \\ \\ /\\ / / _ \\ '_ \\| |\\/| |/ _ \\| |/ _ \\\n\\ V  V /  __/ |_) | |  | | (_) | |  __/\n \\_/\\_/ \\___|_.__/|_|  |_|\\___/|_|\\___|\n                                       \n  EOB\n  puts \"WebMole v\#{VERSION}\".colorize(:light_cyan)\n  puts \"A relatively powerful web scraper.\".colorize(:light_green)\n  puts\nend\n".colorize(:light_blue)


38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/webmole.rb', line 38

def self.print_disclaimer
  puts "DISCLAIMER:".colorize(:yellow)
  puts "This tool is for educational and ethical use only. The user bears all responsibility\nfor ensuring compliance with applicable laws, regulations, and website terms of service.\nMisuse of this tool may be illegal and/or unethical. Always obtain proper authorization\nbefore scraping any website.\n\nContact: Subnetmasked <[email protected]>\n\nBy using this tool, you agree to these terms and conditions.\n  EOD\nend\n".colorize(:light_yellow)

.run(options) ⇒ Object



19
20
21
22
# File 'lib/webmole.rb', line 19

def self.run(options)
  crawler = Crawler.new(options)
  crawler.crawl
end