2020-09-20 01:21:28 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define ON 1
|
|
|
|
#define OFF 0
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <regex>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include <switch.h>
|
|
|
|
|
|
|
|
#include "progress_event.hpp"
|
|
|
|
|
|
|
|
void downloadFile(const char *url, const char *output, int api);
|
|
|
|
std::tuple<std::vector<std::string>, std::vector<std::string>> fetchLinks(const char *url);
|
|
|
|
std::string fetchTitle(const char *url);
|
2020-09-20 21:58:40 +01:00
|
|
|
std::string downloadPage(const char* url);
|