Exemplo n.º 1
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()
Exemplo n.º 2
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  # 限制搜索条数
Exemplo n.º 3
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'
Exemplo n.º 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  # 限制搜索条数
Exemplo n.º 5
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页
Exemplo n.º 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  # 限制搜索条数
Exemplo n.º 7
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页
Exemplo n.º 8
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
Exemplo n.º 9
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
Exemplo n.º 10
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个结果
Exemplo n.º 11
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秒
Exemplo n.º 12
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每次搜索最大条数
Exemplo n.º 13
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