parent
ff75a4a356
commit
c045065502
|
@ -1,6 +1,6 @@
|
||||||
#imports
|
#imports
|
||||||
import requests
|
import requests
|
||||||
from duckduckgo_search import ddg
|
from duckduckgo_search import DDGS
|
||||||
import tldextract
|
import tldextract
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import threading
|
import threading
|
||||||
|
@ -53,7 +53,7 @@ def runrobust(args):
|
||||||
return(np.array_split(a, n))
|
return(np.array_split(a, n))
|
||||||
|
|
||||||
keywords = "filetype:TXT +inurl:\"robots.txt\""
|
keywords = "filetype:TXT +inurl:\"robots.txt\""
|
||||||
results = ddg(keywords, max_results=250)
|
results = DDGS().text(keywords, max_results=250)
|
||||||
results=(href for href in (res["href"] for res in results))
|
results=(href for href in (res["href"] for res in results))
|
||||||
results=[*results]
|
results=[*results]
|
||||||
results=split(results,5)
|
results=split(results,5)
|
||||||
|
|
Loading…
Reference in New Issue