Metadata-Version: 2.1
Name: ig2wp
Version: 0.1.0
Summary: Upload posts from Instagram to Wordpress using Instaloader Tool
Home-page: https://github.com/aderbique/ig2wp
Author: Austin Derbique
Author-email: austin@derbique.us
License: MIT
Keywords: instagram,wordpress,wordpress-uploader,instagram-post,instagram-wordpress,videos,photos,pictures,instagram-user-photos,instagram-photos,instagram-metadata,instagram-downloader
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet
Classifier: Topic :: Multimedia :: Graphics
Requires-Python: >=3.6
License-File: LICENSE
License-File: AUTHORS.md

# ig2wp
Export Instagram Posts into WordPress Posts

# Requirements

- Have WordPress Administrator Prvileges
- Have Username/Password to Instagram Account

# Instructions

## Create a WordPress Application Password

1. Navigate to your blog's /wp-admin endpoint and on the left sidebar, select Users.
2. Select a user with media and posting privilieges. Your administrator user is fine.
3. Scroll to the bottom where it says "Application Passwords". Add a new application password. Give it whatever name you want. Hold onto these credentials.

## Install and run the Instaloader application

1. Visit the [Instaloader Github](https://github.com/instaloader/instaloader) for information on installation, configuration, and exececution. 
2. Upon running the application, you will have a directory containing files ending in `.json.xz`, `.jpg`, `.mp4`, and `.txt`. Make a note of this directory location. You will need it later.


## Install the IG2WP Application

Install the IG2WP python application from source. You may pip install directly from Github as shown below.

```
pip install git+https://github.com/aderbique/ig2wp.git
```

## Configure and Run the IG2WP Application

You have the option of specifying the parameters on each runtime, or by saving the contents to a configuration file. The `-w` parameter writes your variables to the config file for you.

```
$ ig2wp -s https://my-wordpress-blog.com -u <your wp username> -p '<the application password you generated>' -d </path/to/instaloader/account> -want
```

Example:

```
$ ig2wp -s https://blog.derbique.us -u austin -p '5EC5 PpLf 5rVn Ekwe 8JWE KWEP' -d '~/instaloader/austinadventure' -w
```

### Modifying the Configuration file

Simply edit the file after it's generated

```
vim ~/.ig2wp/config.ini
```

# Bug Reporting

Please submit bug reports through Github

