WHAT IS WEB SCRAPING
Web scraping stands for computer software technique of extracting information from websites. Web Scraping scripts and applications will simulate a person viewing a Web site with a browser. With these scripts you can connect to a Web page and request a page, exactly as a browser would do. The Web server will send back the page which you can then manipulate or extract specific information from.
IS SCRAPING TO COLLECT DATA ILLEGAL?
PRACTICAL PROJECT: WEB SCRAPING IN RUBY ON RAILS 5
You can check source code here.