2 Commits

Author SHA1 Message Date
msramalho
5159acab59 Bump version to v1.0.0 for release 2023-02-13 15:37:47 +00:00
msramalho
654a0c44d3 Bump version to v0.1.1 for release 2023-02-13 15:18:35 +00:00
5 changed files with 24 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ on:
release:
types: [published]
push:
branches: [ "main" ]
branches: [ "main", "pypi" ]
tags: [ "v*.*.*" ]
permissions:

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
# 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"]

View File

@@ -1,14 +1,19 @@
# Instagram Location Search
[![PyPI version](https://badge.fury.io/py/instagram-location-search.svg)](https://badge.fury.io/py/instagram-location-search)
<!-- [![Docker Image Version (latest by date)](https://img.shields.io/docker/v/bellingcat/instagram-location-search?label=version&logo=docker)](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
`pip install instagram-location-search`
`pip3 install instagram-location-search`
or the latest from the repo:
`pip install git+https://github.com/bellingcat/instagram-location-search`
`pip3 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".
@@ -41,7 +46,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-location-search --cookies "<instagram-cookie>" --lat <lat> --lng <lng> --ids location_ids.txt
instagram_locations --cookies "<instagram-cookie>" --lat <lat> --lng <lng> --ids location_ids.txt
```
Be sure to install `instagram-scraper`:

View File

@@ -1,9 +1,9 @@
_MAJOR = "1"
_MINOR = "1"
_MINOR = "0"
# On main and in a nightly release the patch should be one ahead of the last
# released build.
_PATCH = "1"
_PATCH = "0"
# 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 = ""

View File

@@ -1,12 +1,11 @@
import setuptools
from instagram_locations.version import __version__
with open("README.md", "r", encoding="utf-8") as file:
long_description = file.read()
setuptools.setup(
name="instagram-location-search",
version=__version__,
version="1.0.0",
author="Bellingcat",
author_email="tech@bellingcat.com",
packages=["instagram_locations"],