Class ScrapingBrowser
- Namespace
- ScrapySharp.Network
- Assembly
- ScrapySharp.dll
public class ScrapingBrowser
- Inheritance
-
ScrapingBrowser
- Inherited Members
-
Constructors
ScrapingBrowser()
Properties
AllowAutoRedirect
public bool AllowAutoRedirect { get; set; }
Property Value
- bool
public bool AllowMetaRedirect { get; set; }
Property Value
- bool
AutoDetectCharsetEncoding
public bool AutoDetectCharsetEncoding { get; set; }
Property Value
- bool
AutoDownloadPagesResources
public bool AutoDownloadPagesResources { get; set; }
Property Value
- bool
CachePolicy
public RequestCachePolicy CachePolicy { get; set; }
Property Value
- RequestCachePolicy
DecompressionMethods
public DecompressionMethods DecompressionMethods { get; set; }
Property Value
- DecompressionMethods
Encoding
public Encoding Encoding { get; set; }
Property Value
- Encoding
public Dictionary<string, string> Headers { get; }
Property Value
- Dictionary<string, string>
IgnoreCookies
public bool IgnoreCookies { get; set; }
Property Value
- bool
KeepAlive
public bool KeepAlive { get; set; }
Property Value
- bool
Language
public CultureInfo Language { get; set; }
Property Value
- CultureInfo
ProtocolVersion
public Version ProtocolVersion { get; set; }
Property Value
- Version
Proxy
public IWebProxy Proxy { get; set; }
Property Value
- IWebProxy
Referer
public Uri Referer { get; }
Property Value
- Uri
SendChunked
public bool SendChunked { get; set; }
Property Value
- bool
Timeout
public TimeSpan Timeout { get; set; }
Property Value
- TimeSpan
TransferEncoding
public string TransferEncoding { get; set; }
Property Value
- string
UseDefaultCookiesParser
public bool UseDefaultCookiesParser { get; set; }
Property Value
- bool
UserAgent
public FakeUserAgent UserAgent { get; set; }
Property Value
- FakeUserAgent
Methods
AjaxDownloadString(Uri)
public string AjaxDownloadString(Uri url)
Parameters
url
Uri
Returns
- string
AjaxDownloadStringAsync(Uri)
public Task<string> AjaxDownloadStringAsync(Uri url)
Parameters
url
Uri
Returns
- Task<string>
ClearCookies()
public void ClearCookies()
DownloadString(Uri)
public string DownloadString(Uri url)
Parameters
url
Uri
Returns
- string
DownloadStringAsync(Uri)
public Task<string> DownloadStringAsync(Uri url)
Parameters
url
Uri
Returns
- Task<string>
DownloadWebResource(Uri)
public WebResource DownloadWebResource(Uri url)
Parameters
url
Uri
Returns
- WebResource
ExecuteRequest(Uri, HttpVerb, NameValueCollection)
public WebResponse ExecuteRequest(Uri url, HttpVerb verb, NameValueCollection data)
Parameters
url
Uri
verb
HttpVerb
data
NameValueCollection
Returns
- WebResponse
ExecuteRequest(Uri, HttpVerb, string)
public WebResponse ExecuteRequest(Uri url, HttpVerb verb, string data)
Parameters
url
Uri
verb
HttpVerb
data
string
Returns
- WebResponse
ExecuteRequestAsync(Uri, HttpVerb, NameValueCollection)
public Task<WebResponse> ExecuteRequestAsync(Uri url, HttpVerb verb, NameValueCollection data)
Parameters
url
Uri
verb
HttpVerb
data
NameValueCollection
Returns
- Task<WebResponse>
ExecuteRequestAsync(Uri, HttpVerb, string, string)
public Task<WebResponse> ExecuteRequestAsync(Uri url, HttpVerb verb, string data, string contentType = null)
Parameters
url
Uri
verb
HttpVerb
data
string
contentType
string
Returns
- Task<WebResponse>
GetCookie(Uri, string)
public Cookie GetCookie(Uri url, string name)
Parameters
url
Uri
name
string
Returns
- Cookie
GetHttpPostVars(NameValueCollection)
public static string GetHttpPostVars(NameValueCollection variables)
Parameters
variables
NameValueCollection
Returns
- string
NavigateTo(Uri, HttpVerb, NameValueCollection)
public string NavigateTo(Uri url, HttpVerb verb, NameValueCollection data)
Parameters
url
Uri
verb
HttpVerb
data
NameValueCollection
Returns
- string
NavigateTo(Uri, HttpVerb, string)
public string NavigateTo(Uri url, HttpVerb verb, string data)
Parameters
url
Uri
verb
HttpVerb
data
string
Returns
- string
NavigateToPage(Uri, HttpVerb, NameValueCollection)
public WebPage NavigateToPage(Uri url, HttpVerb verb, NameValueCollection data)
Parameters
url
Uri
verb
HttpVerb
data
NameValueCollection
Returns
- WebPage
NavigateToPage(Uri, HttpVerb, string, string)
public WebPage NavigateToPage(Uri url, HttpVerb verb = HttpVerb.Get, string data = "", string contentType = null)
Parameters
url
Uri
verb
HttpVerb
data
string
contentType
string
Returns
- WebPage
NavigateToPageAsync(Uri, HttpVerb, string, string)
public Task<WebPage> NavigateToPageAsync(Uri url, HttpVerb verb = HttpVerb.Get, string data = "", string contentType = null)
Parameters
url
Uri
verb
HttpVerb
data
string
contentType
string
Returns
- Task<WebPage>
SetCookies(Uri, string)
public void SetCookies(Uri cookieUrl, string cookiesExpression)
Parameters
cookieUrl
Uri
cookiesExpression
string