Class: Fc2video::Scraper
- Inherits:
-
Object
- Object
- Fc2video::Scraper
- Defined in:
- lib/fc2video/scraper.rb
Constant Summary collapse
- VIDEOS_PER_PAGE =
50
- ADULT_SEARCH_URL =
'http://video.fc2.com/en/a/movie_search.php?perpage=50&page='
- NORMAL_SEARCH_URL =
'http://video.fc2.com/en/movie_search.php?perpage=50&page='
- VIDEO_PATH =
'//div[@class="video_list_renew clearfix"]'
- TITLE_PATH =
'./div[@class="video_info_right"]/h3'
- DURATION_PATH =
'./div[@class="video_list_renew_thumb"]/span'
- URL_PATH =
'./div[@class="video_info_right"]/h3/a'
- IMAGE_URL_PATH =
'./div[@class="video_list_renew_thumb"]/div/a/img'
- VIEWS_PATH =
'./div[@class="video_info_right"]/ul/li'
- FAVS_PATH =
'./div[@class="video_info_right"]/ul/li'
- STATUS_PATH =
'./div[@class="video_info_right"]/ul/li'
Class Method Summary collapse
Class Method Details
.start(type, size, offset) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/fc2video/scraper.rb', line 17 def start(type, size, offset) @type = type @size = size @offset = offset scrape end |