Python2. An existing connection was forcibly closed by a remote node

Error:

requests.exceptions.ConnectionError: ('Connection aborted.', 
error(10054, 'An existing connection was forcibly closed by the remote 
host'))

The code itself:

import requests, sys, os

with open("C:\\cruelnetwork\\supportfile\\werewolves.txt") as werewolves:
            array = [row.strip() for row in werewolves]
bb = 'http://shost-craft.su\n'.join(array)

r = requests.get(bb, headers={"User-Agent":"Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 4.0) Opera 7.0 [en]"})
if r.status_code == 200:
    print('ok')

Why is my connection being forcibly closed? The FILE contains 15 SITES to which the request is sent. Or is it impossible to send a request to more than 5-10 addresses from one IP address? Already even headers put, to think that I am not a bot.

Author: вася, 2017-04-20

1 answers

import requests, sys, os

bb = 'http://shost-craft.su'

with open("C:\\cruelnetwork\\supportfile\\werewolves.txt") as werewolves:
    array = [row.strip()+bb for row in werewolves]

for url in array:
    r = requests.get(url, headers={"User-Agent":"Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 4.0) Opera 7.0 [en]"})
    if r.status_code == 200:
        print('ok')
 0
Author: stxdtm, 2017-04-21 14:01:14