Instagram¶
Python script to retrieve data from Instagram
Env Variables¶
export insta_user=<username>
export insta_pass=<password>
Optionally environment variables can be loaded from a .env
file using the python_dotenv module.
Setup¶
pip install .
- This installs the instagram
package along with its requirements to use the CLI commands.
CLI¶
insta --help
- Help information.insta dp --profile <username>
insta dp
- Prompts to provide username.insta followers
- Prints followers’ username and bio.insta followees
- Prints followees’ username and bio.insta ungrateful --them
- Prints you follow who don’t follow you back.insta ungrateful --me
- Prints followers who you don’t follow back.
Coding Standards¶
Docstring format: Google
Styling conventions: PEP 8
Clean code with pre-commit hooks: flake8
and
isort
Release Notes¶
Requirement
python -m pip install changelog-generator
Usage
changelog reverse -f release_notes.rst -t 'Release Notes'
Linting¶
PreCommit
will ensure linting, and the doc creation are run on every commit.
Requirement
pip install --no-cache sphinx==5.1.1 pre-commit recommonmark
Usage
pre-commit run --all-files