Skip to main content

A simple tool to scrape Facebook events using Selenium

Project description

facebook-events-development

A simple tool to scrape Facebook events using Selenium

Requirements

Usage

from facebook_events import find_all_events
print(find_all_events('https://www.facebook.com/csesoc/events/'))
# ['https://www.facebook.com/events/1338543436555126/', ...]
from facebook_events import get_event_details
import json
print(json.dumps(get_event_details('https://facebook.com/events/837282680573570/'), indent=2))
{
  "id": "837282680573570",
  "url": "https://facebook.com/events/837282680573570/",
  "title": "SecSoc x CSESoc BBQ",
  "time_start": "2022-07-13T12:00:00",
  "time_finish": "2022-07-13T14:00:00",
  "description": "...",
  "location": "...",
  "hosts": [
    {
      "id": "csesoc",
      "name": "CSESoc UNSW",
      "url": "https://www.facebook.com/csesoc/"
    }
  ],
  "image_url": "...",
  "category": None
}

Notes

  • This is a very early version of the tool. It is not yet complete.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

facebook-events-scraper-0.0.2.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page