Skip to content

Instantly share code, notes, and snippets.

View themacmarketer's full-sized avatar

edutech.world themacmarketer

View GitHub Profile
@themacmarketer
themacmarketer / scraper.rb
Created September 10, 2018 09:42 — forked from rodloboz/scraper.rb
livecode scraping
require 'open-uri'
require 'nokogiri'
require 'pry-byebug'
BASE_URL = "https://www.imdb.com"
def fetch_urls
url = "https://www.imdb.com/chart/top"
html_file = open(url).read # string
html_doc = Nokogiri::HTML(html_file) #Nokogiri::HTML::Document