How does one scrape the number of fans of a public Facebook Page using importXML?
-
As also asked here: http://stackoverflow.com/questions/22702095/how-to-scrape-number-of-fans-of-a-public-facebook-page-using-importxml? Trying to figure out how to use Google Spreadsheet's ImportXML function to scrape the number of fans of a public Facebook Page. This does not work: =ImportXML("https: //www . facebook . com/RBReich/likes", "//span[@class='timelineLikesBigNumber fsm']") This formula also doesn't work: =ImportXML("http: //graph . facebook . com/RBReich?fields=likes","//pre") I get this error: Error: Could not fetch url: http: //graph . facebook . com/RBReich?fields=likes (I put spaces inside the URLs so Quora wouldn't format them)
-
Answer:
I think the Facebook graph API returns JSON, not XML. I personally use a custom script to retrieve data from Facebook API to a Google Spreadsheet. Take a look: https://medium.com/@paulgambill/how-to-import-json-data-into-google-spreadsheets-in-less-than-5-minutes-a3fede1a014a
Paulo Ramalho at Quora Visit the source
Related Q & A:
- How to count the number of lines in a file using Bash?Best solution by Stack Overflow
- Is it possible to post something on a facebook group using android?Best solution by Stack Overflow
- How do I delete a facebook page?Best solution by Web Applications
- What are the key elements in a facebook page?Best solution by facebook.com
- How to find out who is the admin of a facebook page?Best solution by facebook.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.