From ead88ae20094a2a6587ed25d77218f4b9332daf2 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Mon, 13 Feb 2023 16:13:43 +0000 Subject: [PATCH] Bump version to v1.1.1 for release --- Dockerfile | 11 ----------- README.md | 9 ++++----- instagram_locations/version.py | 2 +- 3 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index a4a85a8..0000000 --- a/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -# syntax=docker/dockerfile:1 - -FROM python:latest - -WORKDIR /app - -COPY . . - -RUN pip install --upgrade pip && pip install build && python -m build && pip install dist/*.whl - -ENTRYPOINT ["instagram_locations"] \ No newline at end of file diff --git a/README.md b/README.md index 273b2b8..a6215a4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Instagram Location Search +[![PyPI version](https://badge.fury.io/py/instagram-location-search.svg)](https://badge.fury.io/py/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 @@ -8,13 +9,11 @@ This Python application can be installed from PyPI using pip, and can also be bu or the latest from the repo: `pip install git+https://github.com/bellingcat/instagram-location-search` -### Build Docker image -`docker build instagram-location-search .` ## Example usage 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 "" --lat 32.22 --lng -110.97 --csv locs.csv``` +```instagram-location-search --cookie "" --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. @@ -32,7 +31,7 @@ Using the `--map ` 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 "" --lat 32.22 --lng -110.97 --json locs.json --csv locs.csv --map map.html``` +```instagram-location-search --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. @@ -42,7 +41,7 @@ The ID list generated with the `--ids` flag can be passed into `instagram-scrape First, get the proximal location IDs of your target location: ```sh -instagram_locations --cookies "" --lat --lng --ids location_ids.txt +instagram-location-search --cookies "" --lat --lng --ids location_ids.txt ``` Be sure to install `instagram-scraper`: diff --git a/instagram_locations/version.py b/instagram_locations/version.py index b031f20..0c14736 100644 --- a/instagram_locations/version.py +++ b/instagram_locations/version.py @@ -3,7 +3,7 @@ _MAJOR = "1" _MINOR = "1" # On main and in a nightly release the patch should be one ahead of the last # released build. -_PATCH = "0" +_PATCH = "1" # This is mainly for nightly builds which have the suffix ".dev$DATE". See # https://semver.org/#is-v123-a-semantic-version for the semantics. _SUFFIX = ""