# Searpy | Search Engine Tookit

**URL:** <https://onehack.st/t/searpy-search-engine-tookit/215818>\
**Category:** Tools & Scripts\
**Tags:** seo, tools, business\
**Created:** [March 3, 2022, 10:11am UTC](https://onehack.st/t/searpy-search-engine-tookit/215818 "2022-03-03T10:11:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoBody](https://onehack.st/user_avatar/onehack.st/nobody/32/163880_2.png) [@NoBody](https://onehack.st/u/NoBody)\
**Post date:** [March 3, 2022, 10:11am UTC](https://onehack.st/t/searpy-search-engine-tookit/215818/1 "2022-03-03T10:11:50Z")

</div>

[![banner](https://github.com/j3ers3/Searpy/raw/master/media/banner.png)](https://github.com/j3ers3/Searpy/blob/master/media/banner.png)

# Searpy [![Stage](https://camo.githubusercontent.com/4251f940bb377ac104fc26906a71e96aaa60366245b2ce95aeaa07f90e6fbeec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d535441424c452d627269676874677265656e2e737667)](https://camo.githubusercontent.com/4251f940bb377ac104fc26906a71e96aaa60366245b2ce95aeaa07f90e6fbeec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d535441424c452d627269676874677265656e2e737667) [![Python 2.7](https://camo.githubusercontent.com/7a3d5d1c25527a8f888a261faded26db3958174b053a7f1791125502eeb9b6cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d322e372d79656c6c6f772e737667)](http://www.python.org/download/) [![Python 3.7](https://camo.githubusercontent.com/d73cfad0e5a3b6b460ea9679e95fc8ef18209549d9bcbeb7c794794f0db9a95d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d332e372d79656c6c6f772e737667)](http://www.python.org/download/) [![Build Status](https://camo.githubusercontent.com/d339bb7d9a576682e59b7508875a9e077b7d56fe14ed3bb0c5e57294109506f8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d322e332d7265642e737667)](https://camo.githubusercontent.com/d339bb7d9a576682e59b7508875a9e077b7d56fe14ed3bb0c5e57294109506f8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d322e332d7265642e737667)

🔧 批量搜索工具，可用于采集和溯源

> 支持py2和py3

[![banner](https://github.com/j3ers3/Searpy/raw/master/media/banner.png)](https://github.com/j3ers3/Searpy/blob/master/media/banner.png)

## 1. Install

```auto
git clone https://github.com/j3ers3/Searpy
pip install -r requirement.txt

配置API及账号 ./config.py

python Searpy -h

```

## 2. Help

```auto
Searpy Engine Tookit

optional arguments:
  -h, --help show this help message and exit

ENGINE:
  --baidu Using baidu Engine
  --google Using google Engine
  --so Using 360so Engine
  --bing Using bing Engine
  --shodan Using shodan Engine
  --fofa Using fofa Engine
  --zoomeye Using zoomeye Engine
  --goo Using goo Engine
  --yahoo Using yahoo Engine

SCRIPT:
  --shodan_icon SHODAN_ICON
                        Get ip list which using the same favicon.ico
  --fofa_icon FOFA_ICON
                        Get ip list which using the same favicon.ico

MISC:
  -s SEARCH Speciy Keyword
  -o OUTPUT Specify output file default output.txt
  -p PAGE Search page (default 1)
  -l LIMIT Maximum searching results (default:10) Only Shodan

```

### 2.1 示例

```auto
python3 Searpy.py --fofa -s "app=jboss" -p 1

python3 Searpy.py --shodan -s "weblogic" -l 10 

python3 Searpy.py --google -s "inurl:login.action" -p 1

```

[![-w762](https://github.com/j3ers3/Searpy/raw/master/media/16001347790190.jpg)](https://github.com/j3ers3/Searpy/blob/master/media/16001347790190.jpg)

### 2.2 其他功能

利用favicon.icon图标hash来寻找使用相同图标的网站，可用于溯源真实IP和资产发现

```auto
python3 Searpy.py --shodan_icon https://www.qq.com
python3 Searpy.py --fofa_icon https://www.qq.com

```

[![截屏2020-09-15 09.44.36](https://github.com/j3ers3/Searpy/raw/master/media/%E6%88%AA%E5%B1%8F2020-09-15%2009.44.36.png)](https://github.com/j3ers3/Searpy/blob/master/media/%E6%88%AA%E5%B1%8F2020-09-15%2009.44.36.png)

## 3. 模块调用

> > > from Searpy import Bing \>\>\> s = Bing(‘inurl:php?id=1’, 2) \>\>\> s.search() \>\>\> for i in s.result: \>\>\> print(i)

## 4. 支持搜索引擎

- Shodan
- Fofa
- Zoomeye
- Censys
- Dnsdb
- Google
- Baidu
- Bing
- 360so
- Goo
- Yahoo

## 5. ToDo

- 添加子域名搜索

## 6. ChangeLog

#### v2.3

- fix some bugs
- add fofa\_icon module

#### v2.2

- fix some bugs

## 7. Donations

- XMR: `498AoZRwfC11Fa4LwAyVVp3wRD4Zyf1e1HziegczeWeSYVVTZ8gw8CoNPm5yhY91tkDqDMBg6A5KUfyowMtdkQDrDxE5aVN`
- BTC: `1ALWC7rGL4dHgbyy4R8uTVHmDugPDD7Rvt`

## 8. Contact

- [Twitter](https://twitter.com/j3ers3)

## GitHub:

[https://github.com/j3ers3/Searpy](https://github.com/j3ers3/Searpy)
