blob: d244a635462387b58b771506ceb887fe522a96aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef IMAGESCRAPING_H
#define IMAGESCRAPING_H
#include <curl/curl.h>
#include <libxml/HTMLparser.h>
typedef struct {
char *thumbnail_url;
char *title;
char *page_url;
char *full_url;
} ImageResult;
int scrape_images(const char *query, int page, ImageResult **out_results,
int *out_count);
void free_image_results(ImageResult *results, int count);
#endif
|