Converted Tab to Spaces

This commit is contained in:
duckie
2020-08-21 11:10:58 +05:30
committed by GitHub
parent 36a87ffbdd
commit 370bf7bfd9
3 changed files with 73 additions and 56 deletions

View File

@@ -2,6 +2,7 @@ import os
import tld
import json
import tempfile
import re
def host(string):
@@ -34,6 +35,15 @@ def create_url_list(target_url, inp_file):
urls.append(target_url)
return urls
def create_stdin_list(target_url, inp_file):
urls = []
if inp_file:
for line in inp_file.readlines():
if line.startswith(('http://', 'https://')):
urls.append(line.rstrip('\n'))
if target_url and target_url.startswith(('http://', 'https://')):
urls.append(target_url)
return urls
def prompt(default=None):
editor = 'nano'