swarm-to-sqlite
Create a SQLite database containing your checkin history from Foursquare Swarm.
How to install
$ pip install swarm-to-sqlite
Usage
You will need to first obtain a valid OAuth token for your Foursquare account. You can do so using this tool: https://your-foursquare-oauth-token.glitch.me/
Simplest usage is to simply provide the name of the database file you wish to write to. The tool will prompt you to paste in your token, and will then download your checkins and store them in the specified database file.
$ swarm-to-sqlite checkins.db
Please provide your Foursquare OAuth token:
Importing 3699 checkins [#########-----------------------] 27% 00:02:31
You can also pass the token as a command-line option:
$ swarm-to-sqlite checkins.db --token=XXX
Or as an environment variable:
$ export FOURSQUARE_TOKEN=XXX
$ swarm-to-sqlite checkins.db
To retrieve just checkins within the past X hours, days or weeks, use the --since= option. For example, to pull only checkins that happened within the last 10 days use:
$ swarm-to-sqlite checkins.db --token=XXX --since=10d
Use 2w for two weeks, 10h for ten hours, 3d for three days.
In addition to saving the checkins to a database, you can also write them to a JSON file using the --save option:
$ swarm-to-sqlite checkins.db --save=checkins.json
Having done this, you can re-import checkins directly from that file (rather than making API calls to fetch data from Foursquare) like this:
$ swarm-to-sqlite checkins.db --load=checkins.json
Using with Datasette
The SQLite database produced by this tool is designed to be browsed using Datasette.
You can install the datasette-cluster-map plugin to view your checkins on a map.
Metadata
Release files for swarm-to-sqlite 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swarm-to-sqlite-0.3.4.tar.gz | 9.4 kB | Without provenance | Details for swarm-to-sqlite-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarm_to_sqlite-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for swarm_to_sqlite-0.3.4-py3-none-any.whl |
Total release size: 19.6 kB
Release files / swarm-to-sqlite-0.3.4.tar.gz
| Download URL | swarm-to-sqlite-0.3.4.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45365c2abb2335342c24a0fa476622cbf89c9d767f47a46b91094c6c1b8336d6
|
|
BLAKE2b-256 checksum How to use checksums |
f73cb7a03171a655a8bcd19fd0715b67b2ee2efd8544c5a3eb3b2e44b2d13690
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / swarm_to_sqlite-0.3.4-py3-none-any.whl
| Download URL | swarm_to_sqlite-0.3.4-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4cf88d6641840c8c1896328876b587d1fb2daed5cf03a527f95c9961c4914aa
|
|
BLAKE2b-256 checksum How to use checksums |
916d29114b61f1d7261c0b2f6cc5b3d09c6650f86ac4b0b4d2af59f2693d6f08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for swarm-to-sqlite 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.