# Most of the URLs will just be the video's id,
# followed by an underscore and the video title (with
- # all spaces replaced by underscores. Sounds look a good
+ # all spaces replaced by underscores. Sounds like a good
# filename to me.
filename_regex = /\/([[:alnum:]_]+)\.html/
matches = filename_regex.match(@url)
end
- # Just make a normal HTTP "get" request.
- def get_page_data(url)
- uri = URI.parse(url)
-
- response = Net::HTTP.start(uri.host, uri.port) do |http|
- http.get(uri.path)
- end
-
- return response.body
- end
-
end