Beispiel #1
0
 def __init__(self, domain):
     Search.__init__(self)
     self.module = 'Search'
     self.source = 'BaiduSearch'
     self.addr = 'https://www.baidu.com/s'
     self.domain = domain
     self.limit_num = 750  # 限制搜索条数
Beispiel #2
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'ShodanAPISearch'
     self.addr = 'https://api.shodan.io/shodan/host/search'
     self.key = settings.shodan_api_key
Beispiel #3
0
 def __init__(self, domain):
     Search.__init__(self)
     self.source = 'GiteeSearch'
     self.module = 'Search'
     self.addr = 'https://search.gitee.com/'
     self.domain = domain
     self.header = self.get_header()
Beispiel #4
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'SogouSearch'
     self.addr = 'https://www.sogou.com/web'
     self.limit_num = 1000  # 限制搜索条数
Beispiel #5
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'GoogleSearch'
     self.init = 'https://www.google.com/'
     self.addr = 'https://www.google.com/search'
Beispiel #6
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'BingSearch'
     self.init = 'https://www.bing.com/'
     self.addr = 'https://www.bing.com/search'
     self.limit_num = 1000  # 限制搜索条数
Beispiel #7
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'SoSearch'
     self.addr = 'https://www.so.com/s'
     self.limit_num = 640  # 限制搜索条数
     self.per_page_num = 10  # 默认每页显示10页
Beispiel #8
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'AskSearch'
     self.addr = 'https://www.search.ask.com/web'
     self.limit_num = 200  # 限制搜索条数
     self.per_page_num = 10  # 默认每页显示10页
Beispiel #9
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'YandexSearch'
     self.init = 'https://yandex.com/'
     self.addr = 'https://yandex.com/search'
     self.limit_num = 1000  # 限制搜索条数
     self.delay = 5
Beispiel #10
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'FoFaAPISearch'
     self.addr = 'https://fofa.so/api/v1/search/all'
     self.delay = 1
     self.email = settings.fofa_api_email
     self.key = settings.fofa_api_key
Beispiel #11
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'ZoomEyeAPISearch'
     self.addr = 'https://api.zoomeye.org/web/search'
     self.delay = 2
     self.user = settings.zoomeye_api_usermail
     self.pwd = settings.zoomeye_api_password
Beispiel #12
0
 def __init__(self, domain):
     Search.__init__(self)
     self.source = 'GithubAPISearch'
     self.module = 'Search'
     self.addr = 'https://api.github.com/search/code'
     self.domain = domain
     self.session = requests.Session()
     self.session.trust_env = False
     self.auth_url = 'https://api.github.com'
     self.token = settings.github_api_token
Beispiel #13
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'GoogleAPISearch'
     self.addr = 'https://www.googleapis.com/customsearch/v1'
     self.delay = 1
     self.key = settings.google_api_key
     self.id = settings.google_api_id
     self.per_page_num = 10  # 每次只能请求10个结果
Beispiel #14
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'BingAPISearch'
     self.addr = 'https://api.cognitive.microsoft.com/bing/v7.0/search'
     self.id = settings.bing_api_id
     self.key = settings.bing_api_key
     self.limit_num = 1000  # 必应同一个搜索关键词限制搜索条数
     self.delay = 1  # 必应自定义搜索限制时延1秒
Beispiel #15
0
 def __init__(self, domain):
     Search.__init__(self)
     self.domain = domain
     self.module = 'Search'
     self.source = 'YahooSearch'
     self.init = 'https://search.yahoo.com/'
     self.addr = 'https://search.yahoo.com/search'
     self.limit_num = 1000  # Yahoo限制搜索条数
     self.delay = 2
     self.per_page_num = 30  # Yahoo每次搜索最大条数