This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| require './main/crawler/base/crawler.rb' | |
| class MovieCrawler < Crawler | |
| attr_reader :keywords | |
| def initialize() | |
| raise "not implement exception. please override initialize()" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| require './main/crawler/base/crawler.rb' | |
| class MovieCrawler < Crawler | |
| attr_reader :keywords | |
| def initialize() | |
| raise "not implement exception. please override initialize()" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| require './main/crawler/base/movie-crawler.rb' | |
| class YouTubeCrawler < MovieCrawler | |
| def initialize() | |
| @site_url = "https://www.youtube.com/" | |
| @keywords = [ | |
| "子育て 1歳", | |
| "離乳食", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| require './main/crawler/base/crawler.rb' | |
| class MovieCrawler < Crawler | |
| attr_reader :keywords | |
| def initialize() | |
| raise "not implement exception. please override initialize()" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| require 'pg' | |
| require './main/config/capybara-config.rb' | |
| class Crawler | |
| # | |
| include Capybara::DSL | |
| # サイトトップページのURL | |
| attr_reader :site_url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| class YahooChiebukuroSite < QASite | |
| def initialize() | |
| puts "YahooChiebukuroSite#initialize" | |
| @base_url = "http://chiebukuro.yahoo.co.jp/" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| class CookpadSite < CookSite | |
| def initialize() | |
| puts "CookpadSite#initialize" | |
| @base_url = "https://www.cookpad.com/" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| require 'nokogiri' | |
| require 'open-uri' | |
| require 'uri' | |
| require 'capybara' | |
| require 'capybara/dsl' | |
| require 'selenium-webdriver' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| require 'capybara' | |
| require 'capybara/dsl' | |
| require 'selenium-webdriver' | |
| Capybara.current_driver = :selenium | |
| Capybara.app_host = "http://www.yahoo.co.jp/" | |
| Capybara.default_wait_time = 20 | |
| module Crawler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # _*_ coding: utf-8 _*_ | |
| require 'capybara' | |
| require 'capybara/dsl' | |
| require 'selenium-webdriver' | |
| Capybara.current_driver = :selenium | |
| Capybara.app_host = "http://www.blacklistalert.org/" | |
| Capybara.default_wait_time = 20 | |
| module Crawler |
NewerOlder