Hi, I hope someone can help me
My problem is that I want to access the codes of the Instagram Inspect section and receive the caption of the posts, the code is compiled and executed without any errors, but after entering the link and requesting the download, I receive the following errors.
codes :
Sub WebView1_PageFinished (Url As String)
Dim javascript As String
WebView1.JavaScriptEnabled = True
javascript = "web.CallSub('cap', false, javascript: document.getElementsByClassName('_ezgzd')[0].innerText)"
w.executeJavascript(WebView1,javascript)
End Sub
Public Sub cap (ca As String)
textcaption.Text=ca.Trim
ProgressDialogHide
End Sub
Sub download_Click
mpclick.Play
w.addJavascriptInterface(WebView1,"web")
w.addWebChromeClient(WebView1,"")
WebView1.LoadUrl(""&edlink.Text)
ProgressDialogShow("copying...")
End Sub
Errors :
ErrorUtils caught an error:
followedByViewer state must be defined
Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs. in https://www.instagram.com/static/bundles/es6/ConsumerLibCommons.js/4f9d3a21f3b5.js (Line: 4)
Uncaught SyntaxError: missing ) after argument list in ..... (Line: 1)
Uncaught TypeError: Cannot read property 'push' of undefined in ..... (Line: 53)
My problem is that I want to access the codes of the Instagram Inspect section and receive the caption of the posts, the code is compiled and executed without any errors, but after entering the link and requesting the download, I receive the following errors.
codes :
Sub WebView1_PageFinished (Url As String)
Dim javascript As String
WebView1.JavaScriptEnabled = True
javascript = "web.CallSub('cap', false, javascript: document.getElementsByClassName('_ezgzd')[0].innerText)"
w.executeJavascript(WebView1,javascript)
End Sub
Public Sub cap (ca As String)
textcaption.Text=ca.Trim
ProgressDialogHide
End Sub
Sub download_Click
mpclick.Play
w.addJavascriptInterface(WebView1,"web")
w.addWebChromeClient(WebView1,"")
WebView1.LoadUrl(""&edlink.Text)
ProgressDialogShow("copying...")
End Sub
Errors :
ErrorUtils caught an error:
followedByViewer state must be defined
Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs. in https://www.instagram.com/static/bundles/es6/ConsumerLibCommons.js/4f9d3a21f3b5.js (Line: 4)
Uncaught SyntaxError: missing ) after argument list in ..... (Line: 1)
Uncaught TypeError: Cannot read property 'push' of undefined in ..... (Line: 53)