C# Class FT.Scraper.Util

Show file Open project: friism/folketsting

Public Methods

Method Description
DownloadDocument ( string url, FT question ) : int?
GetNewImage ( string url ) : Image
GetPolleFromTale ( HtmlAgilityPack.HtmlDocument taleDoc, string &name, string &polLink ) : void
IsPotentialFormandTale ( HtmlAgilityPack.HtmlDocument taleDoc ) : bool
UpLoadToScribd ( string url, FT question ) : string>.Tuple

Private Methods

Method Description
GetResponse ( string url, int tries ) : HttpWebResponse
GetResponseRec ( string url ) : HttpWebResponse

Method Details

DownloadDocument() public static method

public static DownloadDocument ( string url, FT question ) : int?
url string
question FT
return int?

GetNewImage() public static method

public static GetNewImage ( string url ) : Image
url string
return FT.DB.Image

GetPolleFromTale() public static method

public static GetPolleFromTale ( HtmlAgilityPack.HtmlDocument taleDoc, string &name, string &polLink ) : void
taleDoc HtmlAgilityPack.HtmlDocument
name string
polLink string
return void

IsPotentialFormandTale() public static method

public static IsPotentialFormandTale ( HtmlAgilityPack.HtmlDocument taleDoc ) : bool
taleDoc HtmlAgilityPack.HtmlDocument
return bool

UpLoadToScribd() public static method

public static UpLoadToScribd ( string url, FT question ) : string>.Tuple
url string
question FT
return string>.Tuple