Learn about imagescraper, its a small test project I wrote to familiarize myself with the Sinatra microframework. In short you pass it a url and it returns all images from the page.
Imagescraper is a small project I built using Ruby together with the Sinatra microframework. If you aren’t familiar with Sinatra you can browse the project’s main website at http://www.sinatrarb.com/. In a nutshell Sinatra is light weight framework for Ruby that lets you rapidly build web applications using as few lines of code as possible.
To install Sinatra as a Ruby gem, just type
into your terminal window assuming that you have Ruby installed on your machine and you can begin bashing out HTTP GET and POST request on your local machine using Ruby and then just run the app using the Sinatra gem. For a quick overview of Sinatra see the documentation http://www.sinatrarb.com/documentation.
Anyways, Imagescraper is a small Sinatra app that fetches and displays all images from a given url. I had planned to to do much more with the scraper such as let a user upload a text file with a list of urls and have it download the files to your machine but the project began to lose focus and the unnecessary feature creep was beginning to bog me down. However, the source code is available on my GitHub account and you can play with Imagescraper at the link below(the app is being hosted on Heroku)
Browse the source code:
Run the app on Heroku: