Selenops
2.0.1

歡迎來到Selenops ,Selenops,迅速的網絡爬網。
給定一個網頁URL和一個要搜索的單詞,Selenops將在該頁面中查找所述單詞,以及遞歸中鏈接的所有頁面。
import Selenops
// Initialize crawler.
let crawler = Crawler (
startURL : URL ( string : " https://fivestars.blog/ " ) ! ,
maximumPagesToVisit : 10 ,
wordToSearch : " Swift " // Specify the word to search here.
)
// Set delegate.
crawler . delegate = ... // Needs to conform to CrawlerDelegate
// Start crawling!
crawler . start ( ) crawler代表將獲取諸如訪問的網頁之類的信息,並且在其中找到了指定單詞的網頁。
Selenops是通過Swift Package Manager分發的:
要將其用於應用程序,請遵循本教程,並使用此存儲庫URL: https://github.com/zntfdr/Selenops.git 。
要在包裝中使用它,請將其添加為Package.swift中的依賴項。 swift:
let package = Package (
...
dependencies : [
. package ( url : " https://github.com/zntfdr/Selenops.git " , from : " 2.0.0 " )
] ,
targets : [
. target (
...
dependencies : [ " Selenops " ] )
] ,
...
) ...然後在必要時使用import Selenops 。

Selenops還帶有一個命令行工具,可展示其功能。
要安裝它,請克隆項目並運行make:
$ git clone https://github.com/zntfdr/Selenops.git
$ cd Selenops
$ makeSelenops是由Federico Zanetello建造的,是Swift劇本的一個例子。
歡迎和鼓勵所有用戶成為該項目的積極參與者的持續開發 - 通過修復他們遇到的任何錯誤,或者無論如何缺少其遇到的任何錯誤,或改進文檔。
如果您想進行更改,請打開拉動請求,即使它只包含您計劃的更改的草稿,或者是重現問題的測試。
謝謝,請享受使用Selenops !