Group post title #296
Answered
by
neon-ninja
azimjiwani
asked this question in
Q&A
-
Hey! The scraper works great! Is it possible to get a post's title in a FB group from the scraper? I haven't seen the posts' title, just the body text. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
neon-ninja
May 27, 2021
Replies: 3 comments 6 replies
-
Can you post a screenshot or URL of what you mean? Posts don't have titles, AFAIK |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
neon-ninja
-
Hey, its still not working for me. I cloned the repo as well as installed with pip. Still getting the same output as before
… On May 27, 2021, at 5:04 PM, Nick Young ***@***.***> wrote:
I see - you're referring to the listing titles in a buy sell group. This commit should suffice to extract them - 4be60e4 <4be60e4>. It surfaces the listing information with the keys listing_title, listing_price, and listing_location.
Test code:
pprint.pprint(next(get_posts(
post_urls=["https://m.facebook.com/groups/110354088989367/permalink/4312189348805799/"],
cookies="cookies.txt"
)))
output
{'available': True,
'comments': 0,
'comments_full': None,
'factcheck': None,
'image': None,
'image_lowquality': None,
'images': [],
'images_description': [],
'images_lowquality': [],
'images_lowquality_description': [],
'is_live': False,
'likes': 0,
'link': 'http://www.civil.uwaterloo.ca/xie/277LesterStreet.htm',
'listing_location': 'Downtown Waterloo',
'listing_price': '$1',
'listing_title': '5 Beds 4 Baths Apartment',
'original_request_url': 'https://m.facebook.com/groups/110354088989367/permalink/4312189348805799/',
'post_id': '4312189348805799',
'post_text': '5 BEDROOM UNITS AVAILABLE AT 277 LESTER STREET FOR FALL 2021!!\n'
'\n'
'http://www.civil.uwaterloo.ca/xie/277LesterStreet.htm',
'post_url': 'https://m.facebook.com/groups/110354088989367/permalink/4312189348805799/',
'reaction_count': None,
'reactions': None,
'reactors': None,
'shared_post_id': None,
'shared_post_url': None,
'shared_text': '',
'shared_time': None,
'shared_user_id': None,
'shared_username': None,
'shares': 0,
'text': '5 BEDROOM UNITS AVAILABLE AT 277 LESTER STREET FOR FALL 2021!!\n'
'\n'
'http://www.civil.uwaterloo.ca/xie/277LesterStreet.htm',
'time': datetime.datetime(2021, 5, 22, 2, 12, 57),
'user_id': 1497972649,
'user_url': None,
'username': 'Tiffany Xie',
'video': None,
'video_duration_seconds': None,
'video_height': None,
'video_id': None,
'video_quality': None,
'video_size_MB': None,
'video_thumbnail': None,
'video_watches': None,
'video_width': None,
'w3_fb_url': None}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#296 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHT6QLN6YPANHNMUWVR6SBTTP2XU3ANCNFSM45TOHXPA>.
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Hey,
Looking at your implementation code, listing title only appears in the response when a permalink is provided in the URL. Is there a way for listing location, price, and title are returned in the response without providing a permalink?
… On May 28, 2021, at 11:59 PM, Nick Young ***@***.***> wrote:
I haven't released a new version containing this feature. You can use the command pip install git+https://github.com/kevinzg/facebook-scraper.git to install the latest master branch. It works fine for me with or without cookies. There must be something wrong with your cookies file if you get that error.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#296 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHT6QLKA72Q3DFOKSDP4VY3TQBRDBANCNFSM45TOHXPA>.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you post a screenshot or URL of what you mean? Posts don't have titles, AFAIK