|
|
@ -14,6 +14,7 @@ import ssl
|
|
|
|
import time
|
|
|
|
import time
|
|
|
|
import netrc
|
|
|
|
import netrc
|
|
|
|
import queue
|
|
|
|
import queue
|
|
|
|
|
|
|
|
import getpass
|
|
|
|
import logging
|
|
|
|
import logging
|
|
|
|
import datetime
|
|
|
|
import datetime
|
|
|
|
import requests
|
|
|
|
import requests
|
|
|
@ -250,6 +251,15 @@ class Extractor():
|
|
|
|
seconds, reason)
|
|
|
|
seconds, reason)
|
|
|
|
time.sleep(seconds)
|
|
|
|
time.sleep(seconds)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def input(self, prompt, echo=True):
|
|
|
|
|
|
|
|
if echo:
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
return input(prompt)
|
|
|
|
|
|
|
|
except (EOFError, OSError):
|
|
|
|
|
|
|
|
return None
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
return getpass.getpass(prompt)
|
|
|
|
|
|
|
|
|
|
|
|
def _get_auth_info(self):
|
|
|
|
def _get_auth_info(self):
|
|
|
|
"""Return authentication information as (username, password) tuple"""
|
|
|
|
"""Return authentication information as (username, password) tuple"""
|
|
|
|
username = self.config("username")
|
|
|
|
username = self.config("username")
|
|
|
|