• Stars
    star
    258
  • Rank 158,189 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Facebook_Crawler

Downloads Downloads Downloads

What's this?

This python package aims to help people who need to collect and analyze the public Fanspages or Groups data from Facebook with ease and efficiency.

Here are the three big points of this project:

  1. Private: You don't need to log in to your account.
  2. Easy: Just key in the link of Fanspage or group and the target date, and it will work.
  3. Efficient: It collects the data through the requests package directly instead of opening another browser.

這個 Python 套件旨在幫助使用者輕鬆且快速的收集 Facebook 公開粉絲頁和公開社團的資料,藉以進行後續的分析。

以下是本專案的 3 個重點:

  1. 隱私: 不需要登入你個人的帳號密碼
  2. 簡單: 僅需輸入粉絲頁/社團的網址和停止的日期就可以開始執行程式
  3. 高效: 透過 requests 直接向伺服器請求資料,不需另外開啟一個新的瀏覽器

Quickstart

Install

pip install -U facebook-crawler

Usage

  • Facebook Fanspage

    import facebook_crawler
    pageurl= 'https://www.facebook.com/diudiu333'
    facebook_crawler.Crawl_PagePosts(pageurl=pageurl, until_date='2021-01-01')

    quickstart_fanspage.png

  • Group

    import facebook_crawler
    groupurl = 'https://www.facebook.com/groups/pythontw'
    facebook_crawler.Crawl_GroupPosts(groupurl, until_date='2021-01-01')

    quickstart_group.png

FAQ

  • How to get the comments or replies to the posts?

    Please write an Email to me and tell me your project goal. Thanks!

  • 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?

    No! This is the same as the behavior when we use Facebook. We need to collect the data from the newest posts to the older posts.

License

MIT License

Contribution

ecgo.png

A donation is not the limitation to utilizing this package, but it would be great to have your support. Either donate, star or fork are good methods to support me keep maintaining and developing this project.

Thanks to these donors' help, due to their kind help, this project could keep maintained and developed.

贊助不是使用這個套件的必要條件,但如能獲得你的支持我將會非常感謝。不論是贊助、給予星星或分享都是很好的支持方式,幫助我繼續維護和開發這個專案

由於這些捐助者的幫助,由於他們的慷慨的幫助,這個項目才得以持續維護和發展

  • Simon Hsu (徐聖訓), 梁家仁 (えびさん), 趙志龍, 李例嬛, 柯宜彣, Wilson

Contact Info

Log

  • 0.028: Modularized the crawler function.
  • 0.0.26
    1. Auto changes the cookie after it's expired to keep crawling data without changing IP.

More Repositories

1

DataScience

My Data Science Note
Jupyter Notebook
60
star
2

100Day-ML-Marathon

Jupyter Notebook
14
star
3

FindAndMeetKOLs

Find and Meet KOLs on Facebook Taiwan president election Analisis by SNA and NLP
Jupyter Notebook
12
star
4

PyConTW21_104_WebCrawler

WebCrawler for PyConTW21
HTML
7
star
5

quantumtw

pyinvester
Python
5
star
6

TLYu0419.github.io

Big data , Mechine learning
JavaScript
4
star
7

Stock-Prediction-Using-Facebook-Sentiment-with-Python

Jupyter Notebook
4
star
8

Machine-Learning-Algorithms

At Data Science Dojo, our mission is to make data science (machine learning in this case) available to everyone. Whether you join our [data science bootcamp](https://datasciencedojo.com/data-science-bootcamp/), read our blog, or [watch our tutorials](https://tutorials.datasciencedojo.com/), we want everyone to have the opportunity to learn data science. Having said that, each accordion dropdown is embeddable if you want to take them with you. All you have to do is click the little 'embed' button in the lower left-hand corner and copy/paste the iframe. All we ask is you link back to this post. By the way, if you have trouble with Medium/TDS, just throw your browser into incognito mode.
Jupyter Notebook
2
star
9

PyConTW21_Labor_Market_Analysis_For_Python

Jupyter Notebook
1
star
10

data_visualization_workshop

Jupyter Notebook
1
star
11

FacebookCrawler

Crawl Facebook posts content, summary and comments on wall by Selenium.
Jupyter Notebook
1
star
12

Major-Position-And-Salary-Analysis-Sociology-and-Labor-Market-in-the-Era-of-Big-Data

Major, Position And Salary: Sociology and Labor Market in the Era of Big Data.
Jupyter Notebook
1
star