mirror of
https://github.com/bellingcat/instagram-location-search.git
synced 2026-06-10 11:38:28 +03:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5159acab59 | ||
|
|
654a0c44d3 |
2
.github/workflows/python-publish.yaml
vendored
2
.github/workflows/python-publish.yaml
vendored
@@ -12,7 +12,7 @@ on:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: [ "main", "pypi" ]
|
||||
tags: [ "v*.*.*" ]
|
||||
|
||||
permissions:
|
||||
|
||||
11
README.md
11
README.md
@@ -1,8 +1,15 @@
|
||||
# Instagram Location Search
|
||||
|
||||
[](https://badge.fury.io/py/instagram-location-search)
|
||||
<!-- [](https://pypi.org/project/instagram-location-search/) -->
|
||||
|
||||
|
||||
## Installation
|
||||
This Python application can be installed from PyPI using pip, and can also be built into a Docker image
|
||||
### Install with Pip
|
||||
`pip3 install instagram-location-search`
|
||||
|
||||
or the latest from the repo:
|
||||
`pip3 install git+https://github.com/bellingcat/instagram-location-search`
|
||||
|
||||
### Build Docker image
|
||||
@@ -11,7 +18,7 @@ This Python application can be installed from PyPI using pip, and can also be bu
|
||||
|
||||
The following command will search for Instagram locations nearby the coordinates 32.22 N, 110.97 W (downtown Tucson, Arizona.) The list of locations is saved as a CSV file at "locs.csv".
|
||||
|
||||
```instagram_locations --cookie "<instagram-cookies>" --lat 32.22 --lng -110.97 --csv locs.csv```
|
||||
```instagram-location-search --cookie "<instagram-cookies>" --lat 32.22 --lng -110.97 --csv locs.csv```
|
||||
|
||||
Note that this requires Instagram cookies in order to work! See below for how to obtain one from your account.
|
||||
|
||||
@@ -29,7 +36,7 @@ Using the `--map <output-location>` command line argument, a simple Leaflet map
|
||||
|
||||
Multiple types of output can be generated. For example, the following command will search for Instagram locations, save the JSON list, a CSV file, and a map for viewing the locations visually.
|
||||
|
||||
```instagram_locations --cookie "<instagram-cookie>" --lat 32.22 --lng -110.97 --json locs.json --csv locs.csv --map map.html```
|
||||
```instagram-location-search --cookie "<instagram-cookie>" --lat 32.22 --lng -110.97 --json locs.json --csv locs.csv --map map.html```
|
||||
|
||||
## Sample Usage with `instagram-scraper`
|
||||
The ID list generated with the `--ids` flag can be passed into `instagram-scraper` to pull down image metadata.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
_MAJOR = "0"
|
||||
_MINOR = "1"
|
||||
_MAJOR = "1"
|
||||
_MINOR = "0"
|
||||
# On main and in a nightly release the patch should be one ahead of the last
|
||||
# released build.
|
||||
_PATCH = "0"
|
||||
|
||||
2
setup.py
2
setup.py
@@ -7,7 +7,7 @@ setuptools.setup(
|
||||
name="instagram-location-search",
|
||||
version="1.0.0",
|
||||
author="Bellingcat",
|
||||
author_email="tech@bellingcat.com"
|
||||
author_email="tech@bellingcat.com",
|
||||
packages=["instagram_locations"],
|
||||
description="Finds Instagram location IDs near a specified latitude and longitude.",
|
||||
long_description=long_description,
|
||||
|
||||
Reference in New Issue
Block a user