-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDatasetItem.cs
More file actions
33 lines (25 loc) · 1.04 KB
/
DatasetItem.cs
File metadata and controls
33 lines (25 loc) · 1.04 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
using SmartCrawler.Modules.Contacts;
using SmartCrawler.Modules.CryptoWallets;
using SmartCrawler.Modules.LanguageDetection;
namespace SmartCrawler.Modules;
/**
* Represents the final data format that is going to be used after the crawling has finished
* Each module must have its property defined here. Otherwise, the module dataset would not be accessible
*
* Each module property must be marked as nullable because of the optional nature of every module
*/
public class DatasetItem
{
/// <summary>
/// URL is a required property that identifies each item in the final list
/// </summary>
public string? Url { get; set; }
// These two properties are null only if the CrawlingDepthOptions is not defined or its value is set to 0
public string[]? SubUrls { get; set; }
public int? Depth { get; set; }
// MODULE PROPERTIES
// Set them as nullable
public ContactsDataset? Contacts { get; set; }
public CryptoWalletsDataset? Wallets { get; set; }
public LanguageDetectionDataset? LanguageDetection { get; set; }
}