Is there a way to get just English from web HTML?
I am looping through the children and it gets all the languages.
How can I get HTMLTable and HTMLSeason to loop at the same time?
Here is my code:
here is the ex. Website
https://www.thetvdb.com/series/quantico/seasons/all
I am looping through the children and it gets all the languages.
How can I get HTMLTable and HTMLSeason to loop at the same time?
Here is my code:
Code:
For Each HTMLTable In HTMLTables
For Each HTMLSeason In HTMLSeasons
' Debug.Print HTMLSeason.innerText
Cells(RowNum, 1) = HTMLSeason.innerText
RowNum = RowNum + 1
If HTMLSeason.innerText = "Specials" Then PreSeason = "0x"
If Left(HTMLSeason.innerText, 6) = "Season" Then PreSeason = _
Mid(HTMLSeason.innerText, InStrRev(HTMLSeason.innerText, " ") + 1) & "x"
For Each HTMLRow In HTMLTable.getElementsByTagName("tr")
ColNum = 1
For Each HTMLCell In HTMLRow.Children
If ColNum = 1 Then
' Debug.Print PreSeason & HTMLCell.innerText
Cells(RowNum, ColNum) = PreSeason & HTMLCell.innerText
Else
' Debug.Print HTMLCell.innerText
Cells(RowNum, ColNum) = HTMLCell.innerText
End If
ColNum = ColNum + 1
Next HTMLCell
RowNum = RowNum + 1
Next HTMLRow
Next HTMLSeason
Next HTMLTable
here is the ex. Website
https://www.thetvdb.com/series/quantico/seasons/all