botinsta 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6aaa7af1d1799524017bfd68e099f63b940b8f99d7c5a39d1bf105c351419cdb
4
- data.tar.gz: 8d38665b27b5a6aa1af0edfe34fc0f1129afe67682290ce8225e852c375f48ad
3
+ metadata.gz: 2c12d05858b8f49816a4619aaf56654763dc15168a72ec7c90e9abfe8c1b1a78
4
+ data.tar.gz: 99af2f029b4fc83d1a8333172d42d4976e879db72aae4f67cf985296ff92dd11
5
5
  SHA512:
6
- metadata.gz: 5876356f6bd056b4ed0e6ba5109ecd1cc70ac166186dc3be7bfaee94f9f50b2e214d256d2aafd9cdccd584ed9d1c47999b3fb0ca3a24abccbeb07476a7d034d0
7
- data.tar.gz: 28fbf4d409672370fce4d796fcac09e0d45c0cfc024ff7318d13299599647c870c9a8f7c79987b824c2bd384fa833f87800373d8aee30218fdb9a7ccbb637596
6
+ metadata.gz: cc30b084e633a2be656fa32d37dacc8759ab7901d6369191349e8658ef036f798ed578b95993c55e6b916c4a0e042c9c0a292fa2387c7254d0d85b4e88b8516d
7
+ data.tar.gz: b2d53a7a4d6a7481d47596bba8a7d78b901c43dd730e8868175fa868d577e7be282fa9e3cf19e5c3909f7d4898ff68833541416526c06fb317e65cfd4f5d1676
data/README.md CHANGED
@@ -10,6 +10,10 @@ Well, tag-based means that the bot works based on solely the tags you specified.
10
10
 
11
11
  ## Installation
12
12
 
13
+ Since this bot uses a local database to track follows and media likes. You need to install `libsqlite3-dev`.
14
+
15
+ $ sudo apt-get install libsqlite3-dev
16
+
13
17
  Add this line to your application's Gemfile:
14
18
 
15
19
  ```ruby
@@ -28,8 +32,8 @@ Or install it yourself as:
28
32
 
29
33
  * Follow
30
34
  * Like
31
- * Unfollow people followed after a day. Creates a local database for that.
32
- * Avoid liking blacklisted tags
35
+ * Unfollow people followed after a day. Creates a local database for that matter.
36
+ * Avoid liking medias which has blacklisted tags
33
37
 
34
38
  ## Features to come
35
39
 
@@ -58,6 +62,10 @@ bot = Botinsta.new ({ username: 'YOUR_USERNAME',
58
62
  bot.start
59
63
  ```
60
64
 
65
+ **IMPORTANT:** First of all this bot doesn't work on a daily basis. It just loops through all the tags given to it and accomplishes its task. This is all it does. If you want to reuse it, you should run it again or look for other automation techniques to run this bot everyday (i.e. crontab or some other techniques) until I figure out a logical method to add this feature. I will also add techniques of how to automate this bot using other automation techniques really soon.
66
+
67
+ ---
68
+
61
69
  The bot loops through each tag liking as many images as `@likes_per_tag` and following as many users as `@follows_per_tag`.
62
70
 
63
71
  Liking medias and following users from the tag's first page is easy because all you have to do is:
@@ -82,7 +90,11 @@ An example of the link:
82
90
 
83
91
  As you can see we need to provide the query\_id (query\_hash) and end\_cursor (the same as `after`) in the link.
84
92
 
85
- We get the above parameters with the help of methods in the module [Pages]() below:
93
+ We get the above parameters with the help of methods in the module [Pages](https://www.rubydoc.info/github/andreyuhai/botinsta/master/Pages).
94
+
95
+ The rest is just doing the same controls in a loop to like, follow & unfollow (just for now).
96
+
97
+ TODO: More detailed explanation will be here.
86
98
 
87
99
  ## Documentation
88
100
 
@@ -38,6 +38,7 @@ module Modes
38
38
  if follow_count != @follows_per_tag
39
39
  if get_user_page_data(@media.owner) && follow_if_not_in_db(@user)
40
40
  follow_count += 1
41
+ refresh_db_related if follow_count == 1
41
42
  else
42
43
  print_error_message(action: :follow, data: @user.username)
43
44
  end
@@ -1,3 +1,3 @@
1
1
  class Botinsta
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botinsta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - andreyuhai