Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions DiffbotApi/Diffbot.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Xml.Serialization;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
using System.Web;
using System.Xml.Serialization;
namespace DiffbotApi
{
public class Diffbot
Expand Down Expand Up @@ -39,7 +37,7 @@ public Frontpage Frontpage(string url)
}
}

public Article Article(string url, bool comments = false, bool html = false, bool keepAds = false, bool stats = false, bool summary = false, bool tags = false)
public Article Article(string url, bool comments = false, bool html = false, bool keepAds = false, bool stats = false, bool summary = false, bool tags = false, double timeout = 0)
{
using (WebClient wc = new WebClient())
{
Expand All @@ -56,6 +54,8 @@ public Article Article(string url, bool comments = false, bool html = false, boo
args.Add(new OptionalParameter() { Name = "summary", Value = "true" });
if (tags)
args.Add(new OptionalParameter() { Name = "tags", Value = "true" });
if (timeout != 0)
args.Add(new OptionalParameter() { Name = "timeout", Value = timeout.ToString() });

wc.Proxy = _proxy;
wc.Encoding = Encoding.UTF8;
Expand Down