您好,登錄后才能下訂單哦!
小編給大家分享一下OnionSearch是什么,希望大家閱讀完這篇文章之后都有所收獲,下面讓我們一起去探討吧!
OnionSearch是一款針對洋蔥域名的URL搜索腳本,該工具基于Python 3開發,可以幫助廣大研究人員在不同的.onion搜索引擎中完成URL地址爬取。
Python 3
ahmia
darksearchio
onionland
notevil
darksearchenginer
phobos
onionsearchserver
torgle
onionsearchengine
tordex
tor66
tormax
haystack
multivac
evosearch
deeplink
pip3 install onionsearch
git clone https://github.com/megadose/OnionSearch.git cd OnionSearch/ python3 setup.py install
usage: onionsearch [-h] [--proxy PROXY] [--output OUTPUT] [--continuous_write CONTINUOUS_WRITE] [--limit LIMIT] [--engines [ENGINES [ENGINES ...]]] [--exclude [EXCLUDE [EXCLUDE ...]]] [--fields [FIELDS [FIELDS ...]]] [--field_delimiter FIELD_DELIMITER] [--mp_units MP_UNITS] search positional arguments: search The search string or phrase optional arguments: -h, --help show this help message and exit --proxy PROXY Set Tor proxy (default: 127.0.0.1:9050) --output OUTPUT Output File (default: output_$SEARCH_$DATE.txt), where $SEARCH is replaced by the first chars of the search string and $DATE is replaced by the datetime --continuous_write CONTINUOUS_WRITE Write progressively to output file (default: False) --limit LIMIT Set a max number of pages per engine to load --engines [ENGINES [ENGINES ...]] Engines to request (default: full list) --exclude [EXCLUDE [EXCLUDE ...]] Engines to exclude (default: none) --fields [FIELDS [FIELDS ...]] Fields to output to csv file (default: engine name link), available fields are shown below --field_delimiter FIELD_DELIMITER Delimiter for the CSV fields --mp_units MP_UNITS Number of processing units (default: core number minus 1) [...]
默認配置下,該腳本將會使用“mp_units = cpu_count() - 1”參數來運行。這也就意味著,如果我們的設備CPU有四個核,它將會同時運行三個爬蟲。我們可以隨意設置“mp_units”參數的值,但建議使用默認值。
向所有的搜索引擎請求查詢“computer”:
onionsearch "computer"
向所有的搜索引擎請求查詢“computer”,但排除“Ahmia”和“Candle”:
onionsearch "computer" --exclude ahmia candle
向所有的搜索引擎請求查詢“computer”,需同時包含“Tor66”、“DeepLink”和“Phobos”,
onionsearch "computer" --engines tor66 deeplink phobos
跟上述查詢內容相同,但僅限每個搜索引擎查詢三個頁面:
onionsearch "computer" --engines tor66 deeplink phobos --limit 3
默認配置下,搜索結果將以CSV格式存儲,其中包含下列數據:
"engine","name of the link","url"
我們還可以使用“--fields”和“--field_delimiter”參數來指定輸出文件中的數據項:
“--fields”可以幫助我們添加、移除和重新排序輸出項:
"engine","name of the link","url","domain"
或者:
"engine","domain"
看完了這篇文章,相信你對“OnionSearch是什么”有了一定的了解,如果想了解更多相關知識,歡迎關注億速云行業資訊頻道,感謝各位的閱讀!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。