This file contains 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
# sample5.rb をベースに Clips を取り出します。Clips は /username/ディレクトリ配下にあるため、観た映画より取り出しやすいです。 | |
require 'nokogiri' | |
require 'anemone' | |
opts = { | |
depth_limit: 2 | |
} | |
URL = "https://filmarks.com/users/hogehoge" # hogehoge に Username を入れてください | |
Anemone.crawl(URL, opts) do |anemone| | |
anemone.focus_crawl do |page| | |
page.links.keep_if { |link| |
This file contains 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 'anemone' | |
opts = { | |
depth_limit: 2 | |
} | |
URL = "https://filmarks.com/users/<username>" # Username を入れてください |
This file contains 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
require 'nokogiri' | |
require 'anemone' | |
opts = { | |
depth_limit: 1 | |
} | |
URL = "https://filmarks.com/users/hogehoge" # hogehoge に Username を入れてください | |
Anemone.crawl(URL, opts) do |anemone| | |
anemone.focus_crawl do |page| | |
page.links.keep_if { |link| |
This file contains 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 'anemone' | |
opts = { | |
depth_limit: 1 | |
} | |
URL = "https://filmarks.com/users/<Username>" # Username を入れてください | |
Anemone.crawl(URL, opts) do |anemone| |
This file contains 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 "open-uri" | |
require "rubygems" | |
require "nokogiri" | |
url = "https://filmarks.com/people/63083" | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset |
This file contains 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 "open-uri" | |
require "rubygems" | |
require "nokogiri" | |
url = "https://filmarks.com/people/63083" | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset |
This file contains 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 "open-uri" | |
require "rubygems" | |
require "nokogiri" | |
url = "https://filmarks.com/people/63083" | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset |