Donate is not required to utilize this package, but it would be great to get your support. Either donate, star, or share are good for me. Your support will keep me in maintaining and develop more functions in this project.
The project can help us collect the data from Facebook's public Fanspage / group. Here are the three big points of this project:
這個專案可以幫我們從 Facebook 公開的的粉絲頁和公開社團收集資料。以下是本專案的 3 個重點:
pip install -U facebook-crawler
import facebook_crawler pageurl= 'https://www.facebook.com/diudiu333' facebook_crawler.Crawl_PagePosts(pageurl=pageurl, until_date='2021-01-01')
import facebook_crawler groupurl = 'https://www.facebook.com/groups/pythontw' facebook_crawler.Crawl_GroupPosts(groupurl, until_date='2021-01-01')
Could you please release the function that can collect comments content instead of only the number of comments?
Indeed, the comments and replies content are precious data on social media. But I wouldn't prefer to release this function due to Security. It would be horrible if someone does terrible things through this function. So, if someone needs the comments and replies content, he/she can write me an email and tell me the project purpose, and I will think about it case by case.
How can I find out the post's link through the data?
You can add the string 'https://www.facebook.com' in front of the POSTID, and it's just its post link. So, for example, if the POSTID is 123456789, and its link is 'https://www.facebook.com/12345679'.
Can I directly collect the data in the specific time period?
Nope! It's related to Facebook's website framework. You need to collect the data from the newest post to the older post.