A simple python3 module to synchronize events between calendars
Install via:
pip3 install git+https://github.com/OneBlue/calsync
calsync can be used either as a command line tool, or via a python invocation.
calsync input-calendar-url output-calendar-url <--input-username user> <--input-password password> <--output-username> <--output-password> <--dry-run>
import calsync
from requests.auth import HTTPBasicAuth
new_events, updated_events = calsync.sync(
input_calendar=<input_calendar_url>,
output_calendar=<output_calendar_url>,
input_auth=HTTPBasicAuth(<username>, <password>), # Optional
output_auth=HTTPBasicAuth(<username>, <password>)) # Optional
- Navigate to this page
- Right click -> Copy URL on the 'Add to calendar' button, at the top right corner of the page
- Use this url as the input URL with calsync (not authentication needed)
Sample command line: calsync <url-copied-from-facebook> <caldav-calendar-url> --output-username <caldav-username> --output-password <caldav-password>