-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathindex.html
623 lines (619 loc) · 34.8 KB
/
index.html
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
<!DOCTYPE html>
<html>
<head>
<title>InstaPy GUI</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="assets/js/jquery-3.2.1.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="assets/css/semantic.min.css">
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body>
<div id="conts" class="ui segment" style="padding:0 0 0 20px;">
<!-- MAIN CONTENT -->
<form id="myform" class="ui small form">
<div class="ui sticky fixed top" style="width: 100%;">
<!-- HEADER -->
<div class="ui equal width grid" style=" border-bottom: #e8e2e2 1px solid;background-color: white; padding-top: 10px;-webkit-app-region: drag">
<!-- TITLEBAR -->
<div class="row titlebar" style="-webkit-app-region: drag">
<div class="right floated column" style="text-align: right">
<button id="min-btn" class="ui icon mini button" type="button">
<i class="minus normal icon"></i>
</button>
<button id="exit-btn" class="ui icon mini button" type="button">
<i class="remove normal icon"></i>
</button>
</div>
</div>
<!-- LOGO & LOGIN -->
<div class="row headers" style="-webkit-app-region: drag">
<div class="four wide left floated middle aligned column">
<img src="assets/img/logo-GUI.png" alt="" class="ui small image">
</div>
<div class="ten wide column">
<div class="field">
<div class="ui basic segment">
<div class="two fields" style="margin:0px">
<div class="field">
<div class="ui left labeled icon input">
<input id="username" type="text" placeholder="Username">
<i class="user icon"></i>
</div>
</div>
<div class="field">
<div class="ui left labeled icon input">
<input id="password" name="password" form="myform" type="password" placeholder="Password">
<i class="lock icon"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="error" class="ui error message"></div>
</div>
<div id="alpha" class="field" style="margin-top: 120px; height: 500px; overflow: auto; padding-right: 20px">
<!-- WARNING MESSAGES -->
<div id="file-exists" class="ui message" style="display: none">
<i class="close icon"></i>
<div class="header">
All files are in place, good to go!
</div>
</div>
<div id="file-not-exists" class="ui message" style="display: none">
<div id="instapy-missing" class="header">
instapy folder is missing!
</div>
<div id="driver-missing" class="header">
chromedriver is missing!
</div>
<i class="close icon"></i>
</div>
<div class="ui left action input">
<button id="getPath" type="button" class="ui button">
<i class="folder open icon"></i>
PATH
</button>
<input id="displayPath" type="text" value="Select InstaPy root directory" style="pointer-events: none">
<input id="path" type="file" style="display: none" webkitdirectory />
</div>
<div class="ui left action input" style="margin-top:.8em; color: #222;">
<div class="ui button" style="background-color:#F6CC11; padding:.4em; padding-left:.8em; pointer-events: none;">
<span style="font-size:.9em; margin:0;">Python PATH, </span>
<span style="font-size:.7em; margin:0;">Leave empty for default</span>
</div>
<input id="pythonPath" type="text" value="">
</div>
<!-- SETTINGS -->
<div class="ui horizontal secondary segments">
<div class="ui secondary segment">
<div class="field">
<div class="ui checkbox beta">
<input id="restrictTags_on" type="checkbox" name="example">
<label for="restrictTags_on">Restrict tags</label>
</div>
<div class="ui disabled mini input">
<input id="restrictTags" name="resetrictTag" type="text" placeholder="tag1, tag2, tag3">
</div>
</div>
</div>
<div class="ui secondary segment">
<div class="field">
<div class="ui checkbox beta">
<input id="restrictUsers_on" type="checkbox" name="example">
<label for="restrictUsers_on">Restrict users</label>
</div>
<div class="ui disabled mini input">
<input id="restrictUsers" name="restrictUser" type="text" placeholder="username1, username2, username2">
</div>
</div>
</div>
<div class="ui secondary segment">
<div class="field">
<div class="ui checkbox beta">
<input id="ignoreRestrict_on" type="checkbox" name="example">
<label for="ignoreRestrict_on">Ignore restriction</label>
</div>
<div class="ui disabled mini input">
<input id="ignoreRestrict" name="ignoreRestrict" type="text" placeholder="tag1, tag2, tag3">
</div>
</div>
</div>
<div class="ui secondary segment">
<div class="field">
<div class="ui checkbox beta">
<input id="excludeFriends_on" type="checkbox" name="example">
<label for="excludeFriends_on">Exclude friends</label>
</div>
<div class="ui disabled mini input">
<input id="excludeFriends" name="excludeFriend" type="text" placeholder="friend1, friend2">
</div>
</div>
</div>
</div>
<!-- LIKE BY TAGS -->
<div class="ui secondary segment">
<div class="ui checkbox beta omega">
<input id="byTags_on" type="checkbox" value="True" name="byTags_on">
<label for="byTags_on">Like by Tags</label>
</div>
<div class="inline disabled fields" id="byTags" style="display: none;">
<!-- <div class="field"> -->
<label for="">Tags</label>
<!-- </div> -->
<div class="six wide field">
<div class="ui mini input">
<input id="byTagsTags" type="text" placeholder="tag1, tag2, tag3">
</div>
</div>
<div class="field">
<label for="">Amount</label>
</div>
<div class="four wide field">
<div class="ui mini input">
<input id="byTagsAmount" type="number" placeholder="50">
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byTagsMedia" value="Photo">
<label>Photo</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byTagsMedia" value="Video">
<label>Video</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byTagsMedia" checked="checked" value="None">
<label>Both</label>
</div>
</div>
</div>
</div>
<!-- LIKE BY IMAGES -->
<div class="ui secondary segment">
<div class="ui checkbox beta omega">
<input id="byImg_on" type="checkbox">
<label for="byImg_on">Like by Images</label>
</div>
<div class="inline disabled fields" id="byImg" style="display: none;">
<div class="field">
<label for="">URL</label>
</div>
<div class="six wide field">
<div class="ui mini input">
<input id="byImgUrl" name="byImages_url" type="text" placeholder="www.instagram.com/image">
</div>
</div>
<div class="field">
<label for="">Amount</label>
</div>
<div class="four wide field">
<div class="ui mini input">
<input id="byImgAmount" name="byImages_amount" type="number" placeholder="50">
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byImgMedia" value="Photo">
<label>Photo</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byImgMedia" value="Video">
<label>Video</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byImgMedia" checked="checked" value="None">
<label>Both</label>
</div>
</div>
</div>
</div>
<!-- LIKE BY LOCATIONS -->
<div class="ui secondary segment">
<div class="ui checkbox beta omega">
<input id="byLoc_on" type="checkbox" name="byLoc_cb">
<label for="byLoc_on">Like by Location</label>
</div>
<div class="inline disabled fields" id="byLoc" style="display: none;">
<div class="field">
<label for="">URL</label>
</div>
<div class="six wide field">
<div class="ui mini input">
<input id="byLocUrl" type="text" placeholder="224442573/salton-sea/">
</div>
</div>
<div class="field">
<label for="">Amount</label>
</div>
<div class="four wide field">
<div class="ui mini input">
<input id="byLocAmount" type="number" placeholder="50">
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byLocMedia" value="Photo">
<label>Photo</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byLocMedia" value="Video">
<label>Video</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="byLocMedia" checked="checked" value="None">
<label>Both</label>
</div>
</div>
</div>
</div>
<!-- LIKE UTILITY -->
<div class="ui horizontal segments">
<div class="ui secondary segment">
<div class="field">
<div class="ui checkbox beta">
<input id="fLiked_on" type="checkbox" name="example">
<label for="fLiked_on">Following Liked Image</label>
</div>
<div class="disabled field" id="fLiked">
<div class="inline fields">
<div class="four wide field">
<label>Percent</label>
</div>
<div class="twelve wide field">
<div class="ui mini input">
<input id="fLikedPercent" type="number" placeholder="70">
</div>
</div>
</div>
<div class="inline fields">
<div class="four wide field">
<label>Times</label>
</div>
<div class="twelve wide field">
<div class="ui mini input">
<input id="fLikedTimes" type="number" placeholder="1">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui secondary segment">
<div class="field">
<div class="ui checkbox beta">
<input id="comments_on" type="checkbox">
<label for="comments_on">Commenting Liked Image</label>
</div>
<div class="disabled field" id="commenting">
<div class="inline fields">
<div class="three wide field">
<label for="">Percents</label>
</div>
<div class="three wide field">
<div class="ui mini input">
<input id="commentsPercent" type="number" placeholder="70">
</div>
</div>
<div class="three wide field">
<div class="ui radio checkbox">
<input type="radio" name="commentsMedia" value="Photo">
<label>Photo</label>
</div>
</div>
<div class="three wide field">
<div class="ui radio checkbox">
<input type="radio" name="commentsMedia" value="Video">
<label>Video</label>
</div>
</div>
<div class="three wide field">
<div class="ui radio checkbox">
<input type="radio" name="commentsMedia" value="None" checked="checked">
<label>Both</label>
</div>
</div>
</div>
<div class="inline fields">
<div class="three wide field">
<label for="">Comment</label>
</div>
<div class="ten wide field">
<div class="ui mini input">
<input id="comments" type="text" placeholder="'Nice post!', 'Great pics!'">
</div>
</div>
<div class="ui checkbox" id="">
<input id="commentsEmoji" type="checkbox">
<label>Emoji</label>
</div>
</div>
</div>
</div>
</div>
<div class="ui secondary segment">
<div class="field">
<div class="ui checkbox beta">
<input id="followCount_on" type="checkbox" name="fc_cb">
<label for="followCount_on">Following parameter</label>
</div>
<div class="disabled field" id="followCount">
<div class="inline fields">
<div class="seven wide field">
<label for="">Upper count</label>
</div>
<div class="nine wide field">
<div class="ui mini input">
<input id="upperCount" name="fc_upper" type="number" placeholder="250">
</div>
</div>
</div>
<div class="inline fields">
<div class="seven wide field">
<label for="">Lower count</label>
</div>
<div class="nine wide field">
<div class="ui mini input" id="">
<input id="lowerCount" name="fc_lower" type="number" placeholder="100">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- FOLLOW LIST -->
<div class="ui secondary segment">
<div class="ui checkbox beta omega">
<input id="fUsers_on" type="checkbox" name="fList_cb">
<label for="fUsers_on">Follow Users</label>
</div>
<div class="disabled field" id="fUsers" style="display: none;">
<div class="inline fields">
<div class="one wide field">
<label>Users</label>
</div>
<div class="fourteen wide field">
<div class="ui mini input">
<input id="fUsersLists" name="fList_user" type="text" placeholder="username1, username2">
</div>
</div>
</div>
</div>
</div>
<!-- FOLLOW FOLLOWER -->
<div class="ui secondary segment">
<div class="ui checkbox beta omega">
<input id="fFollowers_on" type="checkbox" name="fFollowers_on">
<label for="fFollowers_on">Follow User Followers</label>
</div>
<div class="disabled field" id="fFollowers" style="display: none;">
<div class="inline fields">
<div class="one wide field">
<label>Users</label>
</div>
<div class="six wide field">
<div class="ui mini input">
<input id="fFollowersUsers" type="text" placeholder="username1, username2">
</div>
</div>
<div class="one wide field">
<label>Amount</label>
</div>
<div class="field">
<div class="ui mini input">
<input id="fFollowersAmount" type="text" placeholder="50">
</div>
</div>
<div class="one wide field">
<label>Delay(s)</label>
</div>
<div class="field">
<div class="ui mini input">
<input id="fFollowersDelay"type="text" placeholder="30">
</div>
</div>
<div class="field">
<div class="ui checkbox">
<input id="fFollowersRandom" type="checkbox">
<label>Random</label>
</div>
</div>
</div>
</div>
</div>
<!-- FOLLOW FOLLOWING -->
<div class="ui secondary segment">
<div class="ui checkbox beta omega">
<input id="fFollowing_on" type="checkbox">
<label for="fFollowing_on">Follow User Followings</label>
</div>
<div class="disabled field" id="fFollowing" style="display: none;">
<div class="inline fields">
<div class="one wide field">
<label>Users</label>
</div>
<div class="six wide field">
<div class="ui mini input">
<input id="fFollowingUsers" type="text" placeholder="username1, username2">
</div>
</div>
<div class="one wide field">
<label>Amount</label>
</div>
<div class="field">
<div class="ui mini input">
<input id="fFollowingAmount" type="text" placeholder="50">
</div>
</div>
<div class="one wide field">
<label>Delay(s)</label>
</div>
<div class="field">
<div class="ui mini input">
<input id="fFollowingDelay" type="text" placeholder="30">
</div>
</div>
<div class="field">
<div class="ui checkbox">
<input id="fFollowingRandom" type="checkbox">
<label>Random</label>
</div>
</div>
</div>
</div>
</div>
<!-- UNFOLLOW -->
<div class="ui secondary segment">
<div class="ui checkbox beta omega">
<input id="unfollowUsers_on" type="checkbox">
<label for="unfollowUsers_on">Unfollow Users</label>
</div>
<div class="disabled field" id="unfollowUser" style="display: none;">
<div class="inline fields">
<div class="one wide field">
<label>Users</label>
</div>
<div class="three wide field">
<div class="ui mini input">
<input id="unfollowAmount" type="number" placeholder="30">
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="unfollowMethod" value="InstaPy">
<label>InstaPy</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="unfollowMethod" value="NotFollowing">
<label>Not Following</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="unfollowMethod" checked="checked" value="None">
<label>None</label>
</div>
</div>
<div class="four wide field">
<div class="ui mini input">
<input id="unfollowOrder" type="text" placeholder="InstaPy only (FIFO/LIFO)">
</div>
</div>
<div class="one wide field">
<label>Delay(s)</label>
</div>
<div class="field">
<div class="ui mini input">
<input id="unfollowDelay" type="text" placeholder="10">
</div>
</div>
</div>
</div>
</div>
<!-- FOLLOW UTIL -->
<div class="ui secondary segment">
<div class="ui checkbox beta omega">
<input id="interact_on" type="checkbox">
<label for="interact_on">Interact with Followed User</label>
</div>
<div class="inline disabled fields" id="interact" style="display: none;">
<div class="field">
<label for="">Amount</label>
</div>
<div class="four wide field">
<div class="ui mini input">
<input id="interactAmount" type="number" placeholder="40">
</div>
</div>
<div class="field">
<label for="">Percentage</label>
</div>
<div class="four wide field">
<div class="ui mini input">
<input id="interactPercent" type="number" placeholder="20">
</div>
</div>
<div class="field">
<div class="ui checkbox">
<input id="interactRandom" type="checkbox">
<label>Random</label>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<!-- FOOTER -->
<div class="ui two column centered grid" style="border-top: #e8e2e2 1px solid;background-color: white; width: 100%">
<div class="middle aligned row">
<button id="fireButton" form="myform" class="ui big blue button">
<i class="icon rocket"></i>
RUN
</button>
<button id="logButton" type="button" class="ui big button">
<i class="icon history"></i>
LOG
</button>
</div>
</div>
<!-- MODAL -->
<div class="ui small modal test">
<i class="close icon"></i>
<div class="header">
InstaPy Process
</div>
<div id="modal-content" class="scrolling content" style="height: 300px">
<div id="exec-log" class="description">
</div>
</div>
<div class="actions">
<div class="ui active inline tiny loader" style="display: none"></div>
<label id="proc-state" class="button">InstaPy is running ...</label>
<div id="terminate" class="ui black button">
Stop
</div>
<div id="finish" class="ui positive right labeled icon button">
End Session
<i class="checkmark icon"></i>
</div>
</div>
</div>
<div style="-webkit-app-region: no-drag;"></div>
</body>
<script src="./assets/js/jquery-3.2.1.min.js"></script>
<script src="./assets/js/jquery-ui.min.js"></script>
<script src="./assets/js/semantic.min.js"></script>
<script src="./assets/js/validation.js"></script>
<script src="./assets/js/view.js"></script>
<script src="./assets/js/app.js"></script>
<script>
$('.message .close')
.on('click', function() {
$(this)
.closest('.message')
.hide()
;
})
;
</script>
</html>