На самом деле я не смог найти код HTML
<td class="line-number" value="568"></td>
<td class="line-content">b_hotel_id: '554615',</td>
в этом URL
url = "https://www.booking.com/hotel/in/dream-catcher-home-stay.en-gb.html"
, но вы можете извлечь число, как показано ниже:
Dim Doc As HTMLDocument
Set Doc = ie.document
Const find_string As String = "b_hotel_id: '"
Dim find_in As String
find_in = Doc.head.innerText
Dim id_start As Long
id_start = InStr(1, find_in, find_string) + Len(find_string)
Dim id_end As Long
id_end = InStr(id_start, find_in, "'")
MsgBox Mid$(find_in, id_start, id_end - id_start)