C# Class Suyati.ImageFetcher.ImageFetcher

The Image Fetcher
Show file Open project: suyati/Image-Fetcher

Public Methods

Method Description
GetImages ( string Url, bool Jpeg = true, bool Png = false, bool OgImage = false, int MaxImageCount = 2 ) : IList

To Get Images from a URL

GetTags ( string content, string tagName ) : ISet
IsValidUrl ( string url ) : bool

To check whether the url is valid or not

Private Methods

Method Description
AddHttpToUrl ( string url ) : string

Appends http to a non-http url

CompleteRelativeUrl ( string relativeSrc, Uri url ) : string

To Complete Relative Url

GetOGImageUrl ( HtmlAgilityPack.HtmlDocument html, Uri url ) : string

To get the blurb image url frm a html document

GetSelectedImageFormat ( bool Jpeg, bool Png ) : string

To get selected image format

Method Details

GetImages() public method

To Get Images from a URL
public GetImages ( string Url, bool Jpeg = true, bool Png = false, bool OgImage = false, int MaxImageCount = 2 ) : IList
Url string
Jpeg bool
Png bool
OgImage bool
MaxImageCount int
return IList

GetTags() public method

public GetTags ( string content, string tagName ) : ISet
content string
tagName string
return ISet

IsValidUrl() public method

To check whether the url is valid or not
public IsValidUrl ( string url ) : bool
url string
return bool