What is the quickest way to get rid of a scrape?

I have a "connect with Facebook" button on my website. I want to learn enough Ruby to have a user click on it, get her/his permissions, and scrape that user's Facebook likes and photos into an Excel spreadsheet. What's the best way to do that?

  • Answer:

    A couple gems already exist to help you out. For the Facebook integration, check out Mogli, an interface for Facebook's OpenGraph API: https://github.com/mmangino/mogli One thing worth noting is that if you create a new Facebook app and choose cloud hosting through Heroku with Ruby as your language, a new app will be generated for you that integrates with Facebook and demonstrates the OG queries. It's based on Sinatra, and it's pretty explanatory. Some quick googling pulled up some options for exporting to Excel. You can export the data you get from Facebook into a CSV or XML file fairly easily. Now, re-reading your question, did you mean that you want to learn Ruby to the point where you can understand how to take these steps? ;)

Andrew Purcell at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.