question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extracting Page Review

See original GitHub issue

Does the library support extracting reviews for pages? Even just the overall review for the page? It doesn’t show up when using get_page_info.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
neon-ninjacommented, Jan 25, 2022

This commit (https://github.com/kevinzg/facebook-scraper/commit/e362c522dd500c3c91ffb858c6044fca3d4b4d9a) should make it possible to extract reviews. Sample usage:

for review in get_page_info("chambajuice")["reviews"]:
    pprint(review)

outputs:

{'post_url': 'https://facebook.com/story.php?story_fbid=844190382691206&id=100013007553035&locale2=en_US&__tn__=%2As%2As',
 'profile_picture': 'https://scontent.fakl8-1.fna.fbcdn.net/v/t1.6435-1/cp0/e15/q65/p40x40/176057649_1213006852476222_7349829092521007297_n.jpg?_nc_cat=100&ccb=1-5&_nc_sid=dbb9e7&_nc_ohc=mQwiEkVN55cAX-txl-s&_nc_ht=scontent.fakl8-1.fna&oh=00_AT_dqKC3Yhu2jYV9Pf4HJhJmn0yjOMoobEoajX5k4rpWfg&oe=6216E02B',
 'recommends': True,
 'text': 'good taste ang milktea. creamy',
 'time': datetime.datetime(2019, 12, 31, 7, 31, 42),
 'timestamp': 1577730702,
 'user_url': 'https://facebook.com/app.bennok?locale2=en_US',
 'username': 'Boy Montaos'}
{'post_url': 'https://facebook.com/story.php?story_fbid=4077043325658195&id=100000577028543&locale2=en_US&__tn__=%2As%2As',
 'profile_picture': 'https://scontent.fakl8-1.fna.fbcdn.net/v/t39.30808-1/cp0/e15/q65/p40x40/252319237_5083768481652336_441345146184154296_n.jpg?_nc_cat=103&ccb=1-5&_nc_sid=dbb9e7&_nc_ohc=tr5R8QAt6-QAX-fEtyM&_nc_ht=scontent.fakl8-1.fna&oh=00_AT-P6GENcwW8sFQv1v1rnFmUbCeZYPwfUx0zXi9sK7bNiQ&oe=61F3BBC3',
 'recommends': True,
 'text': 'Super Affordable and yummy. napaka bilis pa nang service and '
         'delivery. 😊👍',
 'time': datetime.datetime(2020, 12, 9, 2, 27, 39),
 'timestamp': 1607434059,
 'user_url': 'https://facebook.com/hannahniah.lim?locale2=en_US',
 'username': 'Hananiah Fermin Lim'}
{'post_url': 'https://facebook.com/story.php?story_fbid=3178356272178102&id=100000112820909&locale2=en_US&__tn__=%2As%2As',
 'profile_picture': 'https://scontent.fakl8-1.fna.fbcdn.net/v/t39.30808-1/cp0/e15/q65/p40x40/218824795_6398471983499832_3335334123648518092_n.jpg?_nc_cat=104&ccb=1-5&_nc_sid=dbb9e7&_nc_ohc=sJ5901n2oWwAX8qVkQO&_nc_ht=scontent.fakl8-1.fna&oh=00_AT_VL2g9-9jqNkGWNfJOZJnxX9ejqgBsGMrFNdZ-wI_yCg&oe=61F38F86',
 'recommends': True,
 'text': 'ok naman. patamisin lang ng konti yung pearl 😊',
 'time': datetime.datetime(2019, 6, 4, 0, 53, 25),
 'timestamp': 1559566405,
 'user_url': 'https://facebook.com/yzhanyzhi?locale2=en_US',
 'username': 'Yazmine C J Bautista'}
0reactions
neon-ninjacommented, Mar 29, 2022

The reviews aren’t accessible at https://www.facebook.com/atebeyandsell/reviews either

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data extraction - Scoping Reviews - Guides
For scoping reviews, data extraction is referred to as "charting the data". The aim is to create a descriptive summary of the results...
Read more >
The Ultimate Guide to Review Scraping : How-to & Best ...
Review scraping is the process of extracting customer review data from multiple web sources using a web scraper. Learn more about review ...
Read more >
Data Extraction - Systematic Review Toolbox - JABSOM Library
Data extraction is the process of extracting the relevant pieces of information from the studies you have assessed for eligibility in your  ......
Read more >
Automatically extracting user reviews from forum sites
The review records are extracted from web pages based on the proposed level-weighted tree similarity algorithm first, and then the review contents in ......
Read more >
A novel algorithm for extracting the user reviews from web pages
This tag name can be used in the ES for efficient extraction. Moreover, this tag name contains not only the main review text...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found