instaman 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +5 -0
- data/README.md +80 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/instaman.gemspec +27 -0
- data/lib/instaman.rb +5 -0
- data/lib/instaman/version.rb +3 -0
- metadata +110 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0f8b946d5214e8682399e68be89fa81bafbdd8d4
|
4
|
+
data.tar.gz: df4cf44f395104e2c5ba0849f9e2054c07f1558f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1dd8ecd82180ed4ece9da204bdaa0a44837ff79d186d1046af1db27e4920c39eeaabc39c0a98034d9899705f6faaa53994268ce6be3da9d8872582ffc6225284
|
7
|
+
data.tar.gz: 85eed6b483bd078b0b3361d39b16fc618a02934fe7b2daa3be3fad6b2b8368add8d9b4787458a91136c9918fd9d2c75402e03e873630dc8ff28fa97e55d31acc
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# Instaman
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/instaman`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
Instaman is a gem to increase interaction of your Instagram account and increase the number of followers. It visits the latest posts and likes. Follows the owner and unfollows the user after certain number of loops.You can help to develop a comment part and integrate to gem. Since I do not want anyone to be banned I did not include a random commenting part. I want it to be smart as possible. You can fork and develop project and contact me by using Instagram. My username is @hasannkursunn . I would love to interact with you.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'instaman'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install instaman
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Create a new empty array:
|
26
|
+
```ruby
|
27
|
+
follow=[""]
|
28
|
+
```
|
29
|
+
|
30
|
+
Then create a new object for Instaman:
|
31
|
+
```ruby
|
32
|
+
profile = Instaman::Bot.new("YOUR USERNAME GOES HERE" , "YOUR PASSWORD GOES HERE" , "YOUR HASHTAGS GOES HERE WİTH JUST COMMA", "THİS PART FOR COMMENTS BUT THE FEATURE IS NOT ACTIVE YET")
|
33
|
+
```
|
34
|
+
|
35
|
+
Then use methods:
|
36
|
+
```ruby
|
37
|
+
#For Entering account
|
38
|
+
profile.enter_account
|
39
|
+
|
40
|
+
#For running bot
|
41
|
+
profile.bot
|
42
|
+
|
43
|
+
#For running unfollow part
|
44
|
+
profile.unfollow
|
45
|
+
|
46
|
+
```
|
47
|
+
|
48
|
+
The gem was designed to wait enough time after each action. The best thing you can do is to add rescue command as mentioned below and run loop for bot:
|
49
|
+
```ruby
|
50
|
+
#Start loop
|
51
|
+
loop do
|
52
|
+
#Runs follow part for 16 times
|
53
|
+
begin
|
54
|
+
16.times do
|
55
|
+
profile.bot
|
56
|
+
end
|
57
|
+
rescue Watir::Exception::UnknownObjectException #in case it gives an error
|
58
|
+
sleep(40)
|
59
|
+
end
|
60
|
+
|
61
|
+
#Runs unfollow part
|
62
|
+
begin
|
63
|
+
profile.unfollow
|
64
|
+
rescue Watir::Exception::UnknownObjectException #in case it gives an error
|
65
|
+
sleep(40)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
The bot can run days or weeks until you stop it with this way. Please help to improve it. Fork it and give it a star. I will be very appriciated if you contact me with my Instagram account @hasannkursunn . Find me and contact me and lets make something beautifull together.
|
72
|
+
## Development
|
73
|
+
|
74
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
75
|
+
|
76
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hasannkursunn/instaman.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "instaman"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/instaman.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "instaman/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "instaman"
|
8
|
+
spec.version = Instaman::VERSION
|
9
|
+
spec.authors = ["hasan kursun"]
|
10
|
+
spec.email = ["kursunhasan97@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Instaman gem is used to increase the number of followers on Instagram.}
|
13
|
+
spec.description = %q{The Instaman gem interacts with the latest posts on the Instagram according to hashtags that you choose. It likes, follows and unfollows photos and users. Give me feedback and contact me via Instagram with @hasannkursunn username. }
|
14
|
+
spec.homepage = "http://github.com/hasannkursunn/instaman"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.bindir = "exe"
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ["lib"]
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
spec.add_development_dependency "watir", "~> 5.0"
|
26
|
+
spec.add_development_dependency "chromedriver-helper", "~> 1.2"
|
27
|
+
end
|
data/lib/instaman.rb
ADDED
metadata
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: instaman
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- hasan kursun
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.15'
|
19
|
+
name: bundler
|
20
|
+
prerelease: false
|
21
|
+
type: :development
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '10.0'
|
33
|
+
name: rake
|
34
|
+
prerelease: false
|
35
|
+
type: :development
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '5.0'
|
47
|
+
name: watir
|
48
|
+
prerelease: false
|
49
|
+
type: :development
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.2'
|
61
|
+
name: chromedriver-helper
|
62
|
+
prerelease: false
|
63
|
+
type: :development
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.2'
|
69
|
+
description: 'The Instaman gem interacts with the latest posts on the Instagram according
|
70
|
+
to hashtags that you choose. It likes, follows and unfollows photos and users. Give
|
71
|
+
me feedback and contact me via Instagram with @hasannkursunn username. '
|
72
|
+
email:
|
73
|
+
- kursunhasan97@gmail.com
|
74
|
+
executables: []
|
75
|
+
extensions: []
|
76
|
+
extra_rdoc_files: []
|
77
|
+
files:
|
78
|
+
- ".gitignore"
|
79
|
+
- Gemfile
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- bin/console
|
83
|
+
- bin/setup
|
84
|
+
- instaman.gemspec
|
85
|
+
- lib/instaman.rb
|
86
|
+
- lib/instaman/version.rb
|
87
|
+
homepage: http://github.com/hasannkursunn/instaman
|
88
|
+
licenses: []
|
89
|
+
metadata: {}
|
90
|
+
post_install_message:
|
91
|
+
rdoc_options: []
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirements: []
|
105
|
+
rubyforge_project:
|
106
|
+
rubygems_version: 2.6.14.1
|
107
|
+
signing_key:
|
108
|
+
specification_version: 4
|
109
|
+
summary: Instaman gem is used to increase the number of followers on Instagram.
|
110
|
+
test_files: []
|