我正在玩https://developers.google.com/youtube/v3/docs/search/list并注意到测试部分中的以下参数有些奇怪:
然后,点击"执行无OAuth"结果出现了。
搜索字符串" Antonio",您会注意到该片段未被截断(在其他视频中发生),但为空。
视频有说明:https://www.youtube.com/watch?v=f6XOBGW6coI
我做错了吗?这是为了吗?
答案 0 :(得分:1)
这是v3 API的一个缺陷(类似的错误@torazaburo)。并非所有从频道id={videoId from the previous query}
端点返回的视频都会返回说明。
如果视频说明为空,则在第一次查询时,您必须使用 Sub Macro3()
'
' Macro3 Macro
'
'
Dim Erw, Frw, Lrw
Drw = 1
Frw = 1
Lrw = Range("A" & Rows.Count).End(xlUp).Row
For Erw = Frw To Lrw
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;" & Range("A" & Erw).Value, Destination:=Range("G" & Drw))
.Name = ""
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "6"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Drw = Drw + 80
Next Erw
End Sub
和for line in routes_file:
if 'internal' in line:
fields = line.split()
fields.extend([''] * (4 - len(fields)))
_space, host, domain, app = fields
if host:
print(host, file=hosts_fime)
if domain:
print(domain, file=domains_file)
print(app, file=apps_file)
向here端点执行其他API请求才能返回正确的描述