mirror of
https://github.com/xboxeer/NScrapy.git
synced 2026-10-20 07:21:50 +08:00
05368bee59
Involve HtmlAgilityPack and HtmlAgilityPack.CssSelector.NetCore in Infra To help Getting element through CSS Selector
26 lines
570 B
C#
26 lines
570 B
C#
using NScrapy.Infra;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace NScrapy.Engine
|
|
{
|
|
public class MockEngine : IEngine
|
|
{
|
|
public IResponse ProcessRequest(IRequest request)
|
|
{
|
|
System.Threading.Thread.Sleep(3000);
|
|
Console.Write("Mock Engine Called");
|
|
Console.Read();
|
|
return null;
|
|
}
|
|
|
|
public Task<IResponse> ProcessRequestAsync(IRequest request)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
}
|
|
}
|