Scraping Facebook Business "About" data

Hello everyone,

I've been using webscraper for Yelp and have been satisfied with the results, but i'm trying to capture emails since Yelp does not display these. Can someone provide a sample sitemap I can use for Facebook.

I have attached the sitemap I use for Yelp, but this does not work for Facebook.

This is my current process:

  1. Search "Gyms in Costa Mesa"
  2. Go to Places tab
  3. Attempt to run Yelp Sitemap
  4. DOES NOT WORK

You can't expect one site map to work anywhere else then where it was expressly written for.

Here is a sitemap that will get you names, address and phone from Gyms in Cosa Mesa

{"_id":"forum-facebookplaces","startUrl":["https://www.facebook.com/search/str/Gyms+in+Costa+Mesa/keywords_places/"],"selectors":[{"id":"Element","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"div._o1z","multiple":true,"delay":""},{"id":"Name","type":"SelectorText","parentSelectors":["Element"],"selector":"span._1wu_ a","multiple":false,"regex":"","delay":0},{"id":"address","type":"SelectorText","parentSelectors":["Element"],"selector":"span:nth-of-type(1) span._1n0","multiple":false,"regex":"","delay":0},{"id":"Phone Number","type":"SelectorText","parentSelectors":["Element"],"selector":"span._1n0 span._c24","multiple":false,"regex":"","delay":0}]}
1 Like

I appreciate this, but is there any way I can scrape their emails. I have attached a Screenshare (a minute) to show you what I'm trying to do. If you could help me, I'd appreciate it a lot!! Would save me tons of time for leads

https://www.useloom.com/share/53af5d08b6d145e29223d476ac9236ef

Got you!

Here is the map, it's not fast, despite using no delay and reducing page load to the lowest range possible.

I let it run for the first 6 and it seems to be working

{"_id":"forum-facebookplaces","startUrl":["https://www.facebook.com/search/str/Gyms+in+Costa+Mesa/keywords_places/"],"selectors":[{"id":"Element","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"div._o1z","multiple":true,"delay":""},{"id":"Name","type":"SelectorLink","parentSelectors":["Element"],"selector":"span._1wu_ a","multiple":false,"delay":0},{"id":"FInd Us","type":"SelectorElementClick","parentSelectors":["Name"],"selector":"div._3n4o div._4-u2:contains(\"FIND\")","multiple":false,"delay":0,"clickElementSelector":"div._2yaa:contains(\"About\") a._2yau","clickType":"clickOnce","discardInitialElements":false,"clickElementUniquenessType":"uniqueText"},{"id":"Phone","type":"SelectorText","parentSelectors":["FInd Us"],"selector":"div._50f4","multiple":false,"regex":"(?<=Call).*$","delay":0}]}

Hey Antdc

I have this sitemap for fb that you can use. It extracts the emails from the main field and also - if the main field is blank - from the Additional Info field.

Also looks if there's any team member so you get a name and a link to his/her personal profile.

Hope this helps.

{"_id":"facebook_pages-scrap_template","startUrl":["PASTE HERE YOUR FACEBOOK PAGE SEARCH RESULTS URL"],"selectors":[{"id":"listing","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"._gli","multiple":true,"delay":2000},{"id":"Name","type":"SelectorLink","parentSelectors":["listing"],"selector":"a._32mo","multiple":false,"delay":0},{"id":"clickabout","type":"SelectorLink","parentSelectors":["Name"],"selector":"a._2yau:Contains('About')","multiple":false,"delay":0},{"id":"number","type":"SelectorText","parentSelectors":["clickabout"],"selector":"div._3n4o div._50f4","multiple":false,"regex":"","delay":0},{"id":"email","type":"SelectorText","parentSelectors":["clickabout"],"selector":"a#u_fetchstream_10_0 div._50f4","multiple":false,"regex":"","delay":0},{"id":"website","type":"SelectorText","parentSelectors":["clickabout"],"selector":"a div div._50f4","multiple":false,"regex":"","delay":0},{"id":"additional_info","type":"SelectorText","parentSelectors":["clickabout"],"selector":"a div._50f4","multiple":false,"regex":"","delay":0},{"id":"team_members","type":"SelectorLink","parentSelectors":["clickabout"],"selector":"strong a","multiple":false,"delay":0}]}