instacq

Created: 2014-05-19 10:13
Updated: 2014-06-18 01:17

README.md

instacq

a zero-frills instagram acquisition tool

prerequisites

  • postgresql database (9.1 or greater)
  • Java (7 or greater)
  • SBT (tested on v0.13.5)
  • An instagram client_id

set up

  1. Create a new database schema in Postgres for Instacq
  2. cd into the Instacq directory
  3. Copy src/main/resources/application.conf_template /src/main/resources/application.conf.
  4. Edit src/main/resources/application.conf, insert your client_id, data_dir(where you want images stored), and postgres connection info.
  5. Edit log4j.properties, insert the location where Instaq should write its log
  6. Initialize the database system by running sbt and selecting the initDB class from the list

$ sbt run
[sbt info]
Multiple main classes detected, select one to run:

[1] edu.nyu.dlts.instag.initDB
[2] edu.nyu.dlts.instag.AddAccountToDB
[3] edu.nyu.dlts.instag.Crawl

Enter number: 1

  1. Add an instagram user to the system

$ sbt run
[sbt info]
Multiple main classes detected, select one to run:

[1] edu.nyu.dlts.instag.initDB
[2] edu.nyu.dlts.instag.AddAccountToDB
[3] edu.nyu.dlts.instag.Crawl

Enter number: 2

[info] Running edu.nyu.dlts.instag.AddAccountToDB
enter name to search for: mennerich
1 Don Mennerich [mennerich]
enter the number of the account to add: 1
[success] Total time: 19 s, completed Jun 18, 2014 1:07:33 AM

  1. Run a crawl

$ sbt run
[sbt info]
Multiple main classes detected, select one to run:

[1] edu.nyu.dlts.instag.initDB
[2] edu.nyu.dlts.instag.AddAccountToDB
[3] edu.nyu.dlts.instag.Crawl

Enter number: 3

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more