Research Article

Edge-Based Detection and Classification of Malicious Contents in Tor Darknet Using Machine Learning

Algorithm 2

Data crawling.
Input: Set ()
Output: Set
(1)Queue  Enqueue ()
(2)while not empty do
(3) Dequeue()
(4)if has not been processed then
(5) = download ()
(6)else
(7)CONTINUE
(8)end if
(9)if status of website = 200 then
(10) parse ()
(11)else
(12)mark it and re-executed the operation later
(13)CONTINUE
(14)end if
(15){}
(16)end while
(17)return