-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.h
More file actions
42 lines (37 loc) · 1.36 KB
/
parser.h
File metadata and controls
42 lines (37 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/******************************************************************************
* FILE: parser.h
* DESCRIPTION:
* Crawler to map whole website (webpages, imagens, style files, etc).
* AUTHOR: Paulo Mateus
* EMAIL: paulomatew@gmail.com
******************************************************************************/
#ifndef PARSER_H
#define PARSER_H
int checkIfStringHasForbiddenEnding(char* str);
int tratarLinha(char * linha);
int checkIfLineContainsLink(char * line);
int checkIfLineContainsSrc(char * line);
int checkIfLinkIsSameDomain(char * str);
int checkIfLinkWasDownloaded(char * link);
int checkIfLinkHasAnchor(char * str);
void removeDuplicatedLinks();
void removeDuplicatedLinksFolder();
void enumerateAndSave();
void closeLinkFile(FILE* arq);
void writeLinkOnFileFinal(char *txt);
void writeLinkOnFileOtherDomain(char *txt);
void writeLinkOnFileOtherFiles(char *txt);
void writeLinkOnFileWorkSpace(char *txt);
void writeLinkOnFileDownloaded(char *txt);
char * parserINIT(char * name, char * path_with_filename, char * url);
char * removerNiveisDiferentes(char * txt);
char * getDomain();
char * getDomainWithOutBar();
char * getDomainWithBar();
char * completarLink(char * str);
char * tratarLink(char* link);
char * tratarSrc(char* link);
char * removeHttpFromLink(char * str);
FILE * openLinkFile(char * arq);
char ** getDomainAndLevels();
#endif /* PARSER_H */