pornsieve
0.0.0
Search porn sites and filter the results using regular expressions
|
Namespace for the RedTube API. More...
Functions | |
vector< string > | get_categories () |
Get a list of categories from RedTube. More... | |
vector< string > | get_tags () |
Get a list of tags from RedTube. More... | |
search_result | search (media_type type, string_view query, const vector< string_view > &tags={}, string_view category={}, result_order order_by=result_order::none, std::uint32_t page=1) |
Search RedTube. More... | |
Namespace for the RedTube API.
vector< string > pornsieve::redtube::get_categories | ( | ) |
Get a list of categories from RedTube.
pornsieve::CURLException | Thrown on libcurl errors. |
std::runtime_exception | Thrown if libcurl failed to initialize. |
nlohmann::detail::type_error | Thrown if the format of the JSON is different than expected. |
vector< string > pornsieve::redtube::get_tags | ( | ) |
Get a list of tags from RedTube.
pornsieve::CURLException | Thrown on libcurl errors. |
std::runtime_exception | Thrown if libcurl failed to initialize. |
nlohmann::detail::type_error | Thrown if the format of the JSON is different than expected. |
search_result pornsieve::redtube::search | ( | media_type | type, |
string_view | query, | ||
const vector< string_view > & | tags = {} , |
||
string_view | category = {} , |
||
result_order | order_by = result_order::none , |
||
std::uint32_t | page = 1 |
||
) |
Search RedTube.
type | Accepted values: video. |
query | Matching seems to be very fuzzy, to the point where it is unusable. |
tags | Does not really change the result count. Does not seem to influence the result ordering. 😕 |
category | Only some categories work, some return always 0 results. If the specified category does not exist, it returns 0 results. |
order_by | Accepted values: none, newest, mostviewed, rating, popular_week, popular_month. |
page | Return this page of results. |
pornsieve::CURLException | Thrown on libcurl errors. |
std::runtime_exception | Thrown if libcurl failed to initialize. |
nlohmann::detail::type_error | Thrown if the format of the JSON is different than expected. |
std::logic_error | Thrown if the ordering algorithm or media type is not supported. |