Jump to content
Fórum Script Brasil
  • 0

Pegando Strings de site


Densyy
 Share

Question

1 answer to this question

Recommended Posts

  • 0

Bom pra quem tiver essa duvida eu resolvi aqui criando uma funçãozinha ^^

Dim Texto As String
Private Sub Command1_Click()
WebBrowser1.Navigate ("www.meuip.com.br")
End Sub

Private Sub Command2_Click()
Texto = WebBrowser1.Document.documentElement.outerHTML
Text1.Text = Texto

STRip = Text1.Text
vetorip = Split(STRip, "</")
Text1.Text = vetorip(0)


STR1 = Text1.Text
vetor = Split(STR1, "?")
Text1.Text = vetor(1)
End Sub

Add 2 Commands , 1 WebBrowser , 1 Textbox

Estou agora com outra duvida

É possivel pegar o código fonte de uma pagina usando o Inet?

se é como posso fazer isso?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.9k
    • Total Posts
      648.8k
×
×
  • Create New...