Skip to content

Instantly share code, notes, and snippets.

View aruna09's full-sized avatar

Aruna Maurya aruna09

View GitHub Profile
#from requests.exceptions import HTTPError
import requests
outfile = open("output.txt", "w")
with open('url.txt', 'r+') as f:
for line in f:
line = line.rstrip('\n') + '/.git/HEAD'
line = 'http://'+line
outfile.write(line)
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno -5] No address associated with hostname
127.0.0.1 - - [08/Jul/2019 09:29:08] "POST /auth HTTP/1.1" 500 -
127.0.0.1 - - [08/Jul/2019 09:29:10] "POST /auth HTTP/1.1" 500 -
127.0.0.1 - - [08/Jul/2019 09:29:10] "POST /auth HTTP/1.1" 500 -
127.0.0.1 - - [08/Jul/2019 09:29:10] "POST /auth HTTP/1.1" 500 -
127.0.0.1 - - [08/Jul/2019 09:29:10] "POST /auth HTTP/1.1" 500 -
127.0.0.1 - - [08/Jul/2019 09:29:11] "POST /auth HTTP/1.1" 500 -
127.0.0.1 - - [08/Jul/2019 09:29:15] "OPTIONS /addUser HTTP/1.1" 200 -
127.0.0.1 - - [08/Jul/2019 09:29:45] "POST /addUser HTTP/1.1" 500 -
Traceback (most recent call last):