Python API wrapper for darksearch.io
Project description
Python API wrapper for darksearch.io
Install
pip install darksearch
Usage
import darksearch
results = darksearch.search("query")
"""
`results` is a JSON dict object like this
{
"total": int,
"per_page": int,
"current_page": int,
"last_page": int,
"from": int,
"to": int,
"data": [
{
"title": string,
"link": string,
"description": string
}
]
}
"""
results_page_2 = darksearch.search("query", page=2)
"""
`results_page_2` is a JSON dict object like this
{
"total": int,
"per_page": int,
"current_page": 2,
"last_page": int,
"from": int,
"to": int,
"data": [
{
"title": string,
"link": string,
"description": string
}
]
}
"""
results_pages = darksearch.search("query", pages=2)
"""
`results_pages` is a list of JSON dict objects like this
[
{
"total": int,
"per_page": int,
"current_page": 1,
"last_page": int,
"from": int,
"to": int,
"data": [
{
"title": string,
"link": string,
"description": string
}
]
},
...
]
"""
results_pages = darksearch.search("query", pages=2, wait=2)
"""
`wait` is the seconds between requests (DarkSearch's API is limited to 30 requests per minute.)
`results_pages` is a list of JSON dict objects
[
{
"total": int,
"per_page": int,
"current_page": 1,
"last_page": int,
"from": int,
"to": int,
"data": [
{
"title": string,
"link": string,
"description": string
}
]
},
...
]
"""
status = darksearch.crawling_status()
"""
Number of pages indexed
"""
Testing
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DarkSearch-1.3.4.tar.gz
(3.3 kB
view hashes)
Built Distributions
Close
Hashes for DarkSearch-1.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fe0e695ccadcfdbe88c67c4bb63ed59f1da608f26f1d2bffa8f18d20c71f2f4 |
|
MD5 | 5ad5844b28e5ee7be2512b4e944618e5 |
|
BLAKE2b-256 | 82eb92fb147b255293a929432189c3e7e7e408da8db8a9de63d8bba146de266f |
Close
Hashes for DarkSearch-1.3.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66549b3a53ff27ec099a968e3ce97d282df3a854f7bb5ac05fb33f72cf213cf6 |
|
MD5 | 97d8cdae40d23352830e0cefe7e4c631 |
|
BLAKE2b-256 | ceb41cbb7f6558021d6b1be560cae3e9d7c93d64f4000bb2b2d30753a2de70e4 |