dcascraper.rb
def scrape
	monday = getMonday

	# create url to retrieve all movies from current date onwards
	allMoviesURL = getMoviesURL(monday)
	
	# retrieve page
	page = Nokogiri::HTML(open(allMoviesURL))

	# select the movies
	movieListingNodes = getMovieListingNodes(page)

	# parse the movies
	movieListings = parseMovieListings(movieListingNodes)
	
	return movieListings
end
# Scrapes and outputs all movies.
Scrapes and outputs all movies.
Scrapes and outputs all movies .
def scrape
	monday = getMonday
	allMoviesURL = getMoviesURL(monday)
	page = Nokogiri::HTML(open(allMoviesURL))
	movieListingNodes = getMovieListingNodes(page)
	movieListings = parseMovieListings(movieListingNodes)
	return movieListings
end
def scrape monday = getMonday allMoviesURL = getMoviesURL ( monday ) page = Nokogiri :: HTML ( open ( allMoviesURL ) ) movieListingNodes = getMovieListingNodes ( page ) movieListings = parseMovieListings ( movieListingNodes ) return movieListings end
Scrapes and outputs all movies.
Scrapes and outputs all movies .
# create url to retrieve all movies from current date onwards # retrieve page # select the movies # parse the movies