Click or drag to resize

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
SystemObject
  System.Collections.GenericDictionaryString, Object
    IronWebScraperScrapedData

Namespace:  IronWebScraper
Assembly:  IronWebScraper (in IronWebScraper.dll) Version: 4.0.4.25470 (4.0.4.3)
Syntax
public class ScrapedData : Dictionary<string, Object>

The ScrapedData type exposes the following members.

Constructors
  NameDescription
Public methodScrapedData
Initializes a new instance of the ScrapedData class
Top
Properties
  NameDescription
Public propertyComparer (Inherited from DictionaryString, Object.)
Public propertyCount (Inherited from DictionaryString, Object.)
Public propertyItem (Inherited from DictionaryString, Object.)
Public propertyKeys (Inherited from DictionaryString, Object.)
Public propertyValues (Inherited from DictionaryString, Object.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from DictionaryString, Object.)
Public methodClear (Inherited from DictionaryString, Object.)
Public methodContainsKey (Inherited from DictionaryString, Object.)
Public methodContainsValue (Inherited from DictionaryString, Object.)
Public methodEquals (Inherited from Object.)
Public methodStatic memberFromJson
Deserializes a ScrapedData object from JSON created using the toJson() method.
Public methodCode exampleGetT

Returns the specified ScrapedData item cast as the appropriate type.

Examples
E.g:
Get<string>("url");
Public methodGetEnumerator (Inherited from DictionaryString, Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectData (Inherited from DictionaryString, Object.)
Public methodGetType (Inherited from Object.)
Public methodOnDeserialization (Inherited from DictionaryString, Object.)
Public methodRemove (Inherited from DictionaryString, Object.)
Public methodToJson
Converts the ScrapedData to a JSON string.
Public methodToString (Inherited from Object.)
Public methodTryGetValue (Inherited from DictionaryString, Object.)
Top
See Also