IronWebScraper - The C# Web Scraping Library
ScrapedData Class |
A flexible dictionary of object values used to conveniently store scraped data of any Type in a key-value dictionary which can be saved as JSON using the Yield method. ScrapedData can hold data objects of any Type, including Classes.
E.g:Examples
var Data = new ScrapedData(); Data['title'] = "Page Title"; Data['date'] = DateTime.Now;
Inheritance Hierarchy
Namespace: IronWebScraper
Assembly: IronWebScraper (in IronWebScraper.dll) Version: 4.0.4.25470 (4.0.4.3)
Syntax
The ScrapedData type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ScrapedData | Initializes a new instance of the ScrapedData class |
Properties
Name | Description | |
---|---|---|
Comparer | (Inherited from DictionaryString, Object.) | |
Count | (Inherited from DictionaryString, Object.) | |
Item | (Inherited from DictionaryString, Object.) | |
Keys | (Inherited from DictionaryString, Object.) | |
Values | (Inherited from DictionaryString, Object.) |
Methods
Name | Description | |
---|---|---|
Add | (Inherited from DictionaryString, Object.) | |
Clear | (Inherited from DictionaryString, Object.) | |
ContainsKey | (Inherited from DictionaryString, Object.) | |
ContainsValue | (Inherited from DictionaryString, Object.) | |
Equals | (Inherited from Object.) | |
FromJson |
Deserializes a ScrapedData object from JSON created using the toJson() method.
| |
GetT | Returns the specified ScrapedData item cast as the appropriate type. Examples E.g: Get<string>("url"); | |
GetEnumerator | (Inherited from DictionaryString, Object.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | (Inherited from DictionaryString, Object.) | |
GetType | (Inherited from Object.) | |
OnDeserialization | (Inherited from DictionaryString, Object.) | |
Remove | (Inherited from DictionaryString, Object.) | |
ToJson |
Converts the ScrapedData to a JSON string.
| |
ToString | (Inherited from Object.) | |
TryGetValue | (Inherited from DictionaryString, Object.) |
See Also