大佬教程收集整理的这篇文章主要介绍了Web Scraping - 从 Searates 网站到 Excel 的容器跟踪,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
由于缺乏必要的 IT 知识,我正在寻求您的帮助,以便编写代码以从网站跟踪容器编号 SEaraTES (https://www.searates.com/container/tracking/) 到 Excel 获取数据(最终目的地和预计到达时间)。
我尝试过使用 IE internet Explorer 使用 GetElementbyID 的方法,但该网站浏览器似乎已过时且无用。
这个 SERATES 网站提供 API 信息,但它太复杂了,我无法理解。 我附上集装箱跟踪清单供您测试。 https://drive.google.com/file/d/1E0tuA4pymDPZMgwjQC8dDs6w6BxqVdXK/view?usp=sharing
希望有人能在这个对我的后勤工作很重要的项目上给予我支持。
提前致谢。
对于初学者来说,录制宏怎么样。
Sub Macro1()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://drive.google.com/file/d/1E0tuA4pymDPZMgwjQC8dDs6w6BxqVdXK/view",_
DesTination:=Range("$A$1"))
.CommandType = 0
.Name = "view"
.FieldNames = True
.Rownumbers = false
.FillAdjacentFormulas = false
.PreserveFormatTing = True
.refreshOnFiLeopen = false
.BACkgroundQuery = True
.refreshStyle = xlInsertdeleteCells
.Savepassword = false
.SaveData = True
.AdjustcolumnWidth = True
.refreshPeriod = 0
.WebSELEctionType = xlEntirePage
.WebFormatTing = xlWebFormatTingNone
.WebPreFormattedTextTocolumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = false
.WebDisableDateRecognition = false
.WebDisableRedirections = false
.refresh BACkgroundQuery:=false
End With
Range("A1").SELEct
Application.Left = 201.25
Application.Top = 93.25
End Sub
注意,您必须登录。我没有此链接的登录凭据。
以上是大佬教程为你收集整理的Web Scraping - 从 Searates 网站到 Excel 的容器跟踪全部内容,希望文章能够帮你解决Web Scraping - 从 Searates 网站到 Excel 的容器跟踪所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。