-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathold_success.php
executable file
·144 lines (110 loc) · 3.87 KB
/
old_success.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
ini_set( 'default_charset', 'UTF-8' );
require "conf.php";
require "php-api/src/Instagram.php";
use MetzWeb\Instagram\Instagram;
if (isset($_GET['error']) || !isset($_GET['code'])) {
echo 'An error occurred: ' . $_GET['error_description'];
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Visual Tagnet Explorer</title>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<table>
<form action="tagnet.php" method="get">
<input type="hidden" name="code" value="<?php echo $_GET["code"]; ?>" />
<tr>
<td colspan="3">
<h1>Visual Tagnet Explorer</h1>
<p><b>You are now connected to Instagram.</b></p>
<p>This is an app for researchers and brand analysts to create Instagram co-tag networks around keywords or places. The tool retrieves either the latest media tagged with a specified term or the media around a particular location and creates:
<ul>
<li>a tabular file containing a list of media with lots of meta-information;</li>
<li>a tabular file with information on the users related to those media;</li>
<li>a co-tag file (GDF format) to analyze e.g. in <a href="http://gephi.org" target="_blank">gephi</a>;</li>
</ul>
</p>
<p>When using the location mode and a large date range, retrieval may take a very long time, run out of memory, or run into rate limits.<br />
It is strongly recommended that you test a very small date range first (e.g. a single day), to get an understanding how many media have been posted at that location.</p>
<p>For more information on how to use this tool, check out this <a href="https://www.youtube.com/watch?v=o07aUKdRv0g" target="_blank">video</a>.</p>
<p>Before using the tool, you may want to have a look at the <a href="faq.php" target="_blank">FAQ</a> or the <a href="privacy.php" target="_blank">privacy policy</a>.</p>
</td>
</tr>
<tr>
<td colspan="3"><hr /></td>
</tr>
<tr>
<td colspan="3">1) choose a method:</td>
</tr>
<tr>
<td><input type="radio" name="mode" value="last" checked="checked" /></td>
<td>Tag:</td>
<td><input type="text" name="tag" /></td>
</tr>
<tr>
<td></td>
<td>Iterations:</td>
<td><input type="text" name="iterations" value="1" max="1000" /> (max. 1000, one iteration gets 20 items; 10 iterations =~ 200 items)</td>
</tr>
<tr>
<td colspan="3"><hr /></td>
</tr>
<tr>
<td><input type="radio" name="mode" value="location" /></td>
<td>location:</td>
<td>lat: <input type="text" name="lat" /> lng: <input type="text" name="lng" /> distance: <input type="text" name="distance" value="1000" /> (in meters, max. 5000) </td>
</tr>
<tr>
<td></td>
<td></td>
<td>date range: <input type="text" name="date_end" /> - <input type="text" name="date_start" /> (YYYY-MM-DD, more recent date second)</td>
</tr>
<tr>
<td colspan="3"><hr /></td>
</tr>
<tr>
<td colspan="3">2) options:</td>
</tr>
<!--
<tr>
<td></td>
<td>Get user infos:</td>
<td><input type="checkbox" name="getuserinfo" max="100" /> (retrieves additional information for every user, e.g. user bio, can add a lot of time to processing)</td>
</tr>
-->
<tr>
<td></td>
<td>Preview media:</td>
<td>
<select name="showimages">
<option value="off">no preview</option>
<option value="thumbnail">thumbnail</option>
<option value="low_resolution">low resolution</option>
<option value="standard_resolution">standard resolution</option>
</select>
(images can slow down the browser for big queries)
</td>
</tr>
<tr>
<td colspan="3"><hr /></td>
</tr>
<tr>
<td></td>
<td>Token:</td>
<td><input type="text" name="token" max="100" /></td>
</tr>
<tr>
<td colspan="3"><hr /></td>
</tr>
<tr>
<td colspan="3"><input type="submit" /></td>
</tr>
</form>
<table>
</body>
</html>