"Sync Foursquare Swarm check-ins to local sqlite DB and generate iCalendar"
Project description
foursquare-swarm-ical
Overview
Sync Foursquare Swarm check-ins to local sqlite DB (incrementally) and generate iCalendar.
Installation
pipx ensurepath
pipx install --spec git+https://github.com/liskin/foursquare-swarm-ical foursquare-swarm-ical
To keep a local git clone around:
git clone https://github.com/liskin/foursquare-swarm-ical
make -C foursquare-swarm-ical pipx
Alternatively, if you don't need the isolated virtualenv that pipx provides, feel free to just:
pip install git+https://github.com/liskin/foursquare-swarm-ical
Preparation
You'll need to obtain a Foursquare API Access Token. The easiest way to obtain
one is to use their API Exporer.
Grant it permission for your account, open DevTools, let it execute an API
call and then inspect the request and copy oauth_token
from the Query String
Parameters.
- Chrome: https://developers.google.com/web/tools/chrome-devtools/network/reference#query-string
- Firefox: https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor/request_list
Usage
$ foursquare-swarm-ical --help
usage: foursquare-swarm-ical [-h] [-v] [--no-sync] [--access-token XXX]
[--database FILE] [--emoji]
Sync Foursquare Swarm check-ins to local sqlite DB and generate iCalendar
optional arguments:
-h, --help show this help message and exit
-v, --verbose
--no-sync skip online sync, print ical from database only
--access-token XXX foursquare oauth2 access token (default:
getenv('FOURSQUARE_TOKEN'))
--database FILE sqlite database file (default: checkins.sqlite)
--emoji prefix summary with venue category as emoji
Example:
$ foursquare-swarm-ical --access-token TOKENTOKENTOKEN
BEGIN:VCALENDAR
VERSION:2.0
PRODID:foursquare-swarm-ical
BEGIN:VEVENT
SUMMARY:@ Venue
DTSTART;VALUE=DATE-TIME:20120304T214456Z
…
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for foursquare-swarm-ical-1.0.0b5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18e82b7d35f058508d56c821092df3b1b4a00d3bb46b284ce792259d4c7fb8fe |
|
MD5 | dff44088ea76c4f066479defc1449fba |
|
BLAKE2b-256 | 55aaced455d98fc84404f45a7aeec25beaa10cf01db0c07923568695901cdb75 |
Close
Hashes for foursquare_swarm_ical-1.0.0b5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04abb02cf0278a165518307dff0ea32fe3ca87acc154f4cd4df956898368db8b |
|
MD5 | 41a356a065640880811eb243f9f8dd17 |
|
BLAKE2b-256 | e9d90b132df867b895d038bf05b465a9b387118a2cfb43a5865fff679111cdaa |