-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.rb
46 lines (39 loc) · 1.13 KB
/
main.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require 'rest_client'
require 'nokogiri'
require 'progress_bar'
require 'pry'
require 'json'
require 'i18n'
require 'mongoid'
require 'savon'
require 'settingslogic'
require_relative 'lib/config/database'
Config::Database.setup
class Settings < Settingslogic
source "./config.yml"
end
require_relative "lib/local_storage"
require_relative "lib/person"
require_relative "lib/smart_fetcher"
require_relative "lib/parsed_page"
require_relative "lib/word"
require_relative "lib/batch_racai_fetcher"
require_relative "lib/url"
require_relative "lib/racai_builder"
require_relative "analyzer"
# fetcher implementations
require_relative "fetchers/strategy/incremental"
require_relative "fetchers/timpul"
require_relative "fetchers/unimedia"
require_relative "fetchers/publika"
require_relative "fetchers/protv"
require_relative "fetchers/agora"
require_relative "fetchers/prime"
require_relative "parsers/strategy/incremental"
require_relative "parsers/helpers"
# parser implementation
require_relative "parsers/timpul"
require_relative "parsers/unimedia"
require_relative "parsers/publika"
require_relative "parsers/protv"
require_relative "parsers/agora"