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
}
]
},
...
]
"""
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.3.tar.gz
(2.7 kB
view hashes)
Built Distributions
Close
Hashes for DarkSearch-1.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5873566414b06c12643723c87462fc88a7a907a9b7920e997739b8292cecfcf8 |
|
MD5 | eb74e20ca11679cadf507abdb730e4dd |
|
BLAKE2b-256 | 7e7c40b3f5b447d3d199c57d7bcbac0922e89449e7796a71d0ad730a2790456b |
Close
Hashes for DarkSearch-1.3.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7adffb372482fdc1c1bd0b20e9db6f6c467d7260363e60912fa128955f313564 |
|
MD5 | a55018ff94cde5ba3ef17317cf8b8624 |
|
BLAKE2b-256 | e811ac02bff80d728aeca848d3b7e09e97cf016ac408d65ac75a242f8c956940 |