- 博客(4)
- 收藏
- 关注
原创 win 64位“结束进程”(映像路径名称)
//查找进程、结束进程void killProcess(){ Process[] pro = Process.GetProcesses();//获取已开启的所有进程 //遍历所有查找到的进程 foreach (var p in pro) { if (p.ProcessName.ToString().ToLower() == "taskname") { string path = pro[i].MainModule.FileName.ToString(); if (p
2021-07-02 14:38:34
138
原创 C#爬虫selenium webdriver使用火狐浏览器截取全屏并转成pdf
对于网页页面很长的,使用webdriver自带的方法进行截屏时,默认的最大截取宽度是16384,超过最大宽度就要对页面进行裁剪拼接public Bitmap GetFullScreenshot() { Bitmap stitchedImage = null; try { long totalwidth1 = (long)((IJavaScriptExecutor)this.webD.
2021-07-01 10:22:39
628
原创 C# 爬虫使用Selenium webDriver下载excel文件
QA.Firefox.FirefoxOptions ffOptions = new QA.Firefox.FirefoxOptions(); string tmpPath =@"D:\xiangcai"; if (!System.IO.Directory.Exists(tmpPath)) { System.IO
2021-05-10 15:11:16
780
原创 itextsharp读取PDF中表格中内容,并处理
using iTextSharp.text.pdf;using iTextSharp.text.pdf.parser;private void GetPDFTableInfo(string catchDate, string institutionId, string institution, string fileName) { PdfReader reader = new PdfReader(fileName); int pageCou
2021-03-17 16:24:34
2962
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人