3

Instahunter

 4 years ago
source link: https://www.tuicool.com/articles/6fmqQvA
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Instahunter

Instahunter is a CLI app that can fetch posts and user data from Instagram.

Getting Started

Prerequisites

To run the app from source - Git is needed to clone the repository on your machine. Python and Click are required to run the app from the source.

Installing

After installing git , clone the repository on your machine

git clone https://github.com/KSSBro/instahunter.git

After installing Python , install Click with pip

pip install click

Usage

Running from the source:

python instahunter.py

Running from the executable:

instahunter

To get help use --help :

instahunter --help
instahunter getposts --help

Getting Posts

Use the command getposts and option -tag to search for posts.

instahuter getposts -tag *the_hashtag_you_want_to_search_posts_for*

Getting User Data

Use the command getuser to get user data.

Options:

  • -via : username(default) - fetch data with username, id - fetch date with user id
  • --value : username or id you want to fetch data with, depending upon your choice in -via
instahunter getuser -via *username or id* --value *value*

Getting User Posts

Use the command getuserposts and option -username to get posts.

instahunter getuserposts -username *username*
All the above commands will display data in the terminal itself.

Creating a file with the data

To create a file with the data retrieved use -create-file and --file-type options along with any option.

Options:

-create-file
--file-type
instahunter getposts -tag *hashtag* -create-file *true or false* --file-type *json or text*

Release

v1.2 has been released. The executable is available in the release section.

Built with

Contributing

Fork the repository and open a pull request to contribute. Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors

License

MIT


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK