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 +4 -4
- data/README.md +15 -3
- data/lib/botinsta/modes.rb +1 -0
- data/lib/botinsta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c12d05858b8f49816a4619aaf56654763dc15168a72ec7c90e9abfe8c1b1a78
|
4
|
+
data.tar.gz: 99af2f029b4fc83d1a8333172d42d4976e879db72aae4f67cf985296ff92dd11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]()
|
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
|
|
data/lib/botinsta/modes.rb
CHANGED
data/lib/botinsta/version.rb
CHANGED