dcascraper.rb
# 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