GithubHelp home page GithubHelp logo

facebook-event-crawler's Introduction

Facebook event crawler

While facebook removed his events API, retrieving data became difficult. This library is crawling Facebook, and parsing all data from the UI. Sometimes that fails, so you need to be fault tolerant :)

Picture about the database

Install:

  1. Create a new non-used facebook account
  2. Change the language to English/US! (That's important!) (https://www.facebook.com/settings?tab=language)
  3. Create a new mysql database
  4. Import the database.sql file
  5. Add some page ids to the pages database table (the page id is on the link, for example facebook.com/PageId)

Config:

  1. Copy CONFIG_DEFAULT.py to CONFIG.py cp CONFIG_DEFAULT.py CONFIG.py
  2. Fill the empty fields below
  3. Run! All records will be inserted to the 'events' table!

Setup geocode (optional):

If you need latitude and longitude codes for event places, use my Geo Cache library. This library is included as a submodule, so you just need to pull it (more):

cd Facebook-event-crawler
git submodule update --init --recursive
  1. Setup the local or remote server
  2. Setup Geo-cache/CONFIG.php
  3. Edit Facebook-event-crawler/CONFIG.py

Enjoy!

Development

Want to contribute? Great! Please test a lot, before sending your pull request :)

Alternatives

This crawler is not too universal, so if you need to crawl anything else, I would recommend these:

Crawler No coding required Login feature Open source & self hosted
Scrapy
ParseHub
Simple Scaper ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.