Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventdesert committed May 13, 2018
1 parent 0e71ae6 commit 79a0df4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
15 changes: 15 additions & 0 deletions Docs/教学视频录制.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

1. 软件发展史
2. 设计理念
3. 相关资料

4. 示例工程和调试

采集器的功能介绍
- 全自动模式
- 手动模式+检索


5. 链家抓取(单页面/手气不错)

6. 链家多页面(请求)
2 changes: 1 addition & 1 deletion Hawk.Core/Connectors/FileConnectorExcel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public override IEnumerable<FreeDocument> ReadFile(Action<int> alreadyGetSize =
public override IEnumerable<IFreeDocument> WriteData(IEnumerable<IFreeDocument> datas)
{
var xssfWb = new XSSFWorkbook();
var wb = new SXSSFWorkbook(xssfWb, 100);
var wb = new SXSSFWorkbook(xssfWb, 1000);
// IWorkbook workbook = new XSSFWorkbook();
var sheet1 = xssfWb.CreateSheet("Sheet1");
var sw = File.Create(FileName);
Expand Down
7 changes: 5 additions & 2 deletions Hawk.ETL/Process/SmartCrawler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,11 @@ private async void GetXPathAsync()
htmlTextBox.SelectionStart = node.StreamPosition;
htmlTextBox.SelectionLength = node.OuterHtml.Length;
var line = htmlTextBox.GetLineIndexFromCharacterIndex(node.StreamPosition); //返回指定字符串索引所在的行号
//Debug.WriteLine(rows + ",," + line);
htmlTextBox.ScrollToLine(line + 1); //滚动到视图中指定行索引
if (line > 0)
{
htmlTextBox.ScrollToLine(line + 1); //滚动到视图中指定行索引
}
});


Expand Down

0 comments on commit 79a0df4

Please sign in to comment.