From a11bf8bb6c1baaef51c25d441f5348567280967b Mon Sep 17 00:00:00 2001 From: frosty Date: Tue, 10 Mar 2026 02:32:51 -0400 Subject: those who commit --- src/Scraping/Scraping.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Scraping/Scraping.h') diff --git a/src/Scraping/Scraping.h b/src/Scraping/Scraping.h index e33f529..f1ad2c4 100644 --- a/src/Scraping/Scraping.h +++ b/src/Scraping/Scraping.h @@ -1,8 +1,8 @@ #ifndef SCRAPING_H #define SCRAPING_H -#include #include +#include typedef struct { char *url; @@ -11,7 +11,7 @@ typedef struct { } SearchResult; typedef int (*ParserFunc)(const char *engine_name, xmlDocPtr doc, - SearchResult **out_results, int max_results); + SearchResult **out_results, int max_results); typedef struct { const char *name; @@ -20,8 +20,8 @@ typedef struct { const char *referer; const char *page_param; - int page_multiplier; - int page_base; + int page_multiplier; + int page_base; ParserFunc parser; } SearchEngine; @@ -36,7 +36,7 @@ typedef struct { char *query; SearchResult **out_results; int max_results; - int page; + int page; CURL *handle; MemoryBuffer response; int results_count; @@ -46,7 +46,7 @@ extern const SearchEngine ENGINE_REGISTRY[]; extern const int ENGINE_COUNT; int scrape_engine(const SearchEngine *engine, const char *query, - SearchResult **out_results, int max_results); + SearchResult **out_results, int max_results); int scrape_engines_parallel(ScrapeJob *jobs, int num_jobs); -- cgit v1.2.3