a zero-frills instagram acquisition tool
- postgresql database (9.1 or greater)
- Java (7 or greater)
- SBT (tested on v0.13.5)
- An instagram client_id
- Create a new database schema in Postgres for Instacq
- cd into the Instacq directory
- Copy src/main/resources/application.conf_template /src/main/resources/application.conf.
- Edit src/main/resources/application.conf, insert your client_id, data_dir(where you want images stored), and postgres connection info.
- Edit log4j.properties, insert the location where Instaq should write its log
- 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
- 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
- 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