• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Auto update of scraped data whether the file is open or close

shahin

Active Member
I have created a parser which is able to parse "jpg" links from a torrent site. I hope there is any method or way to update the links or pictures that I've already scraped irrespective of the file is open or not. Hope somebody is there to help me on this. Thanks in advance. The code I've written so far is:

Code:
Sub YifyUpdate()
Dim Pcscont As Object, pcs As Object

With CreateObject("MSXML2.serverXMLHTTP")
    .Open "GET", "https://www.yify-torrent.org/search/1080p/", False
    .send
    Set html = CreateObject("htmlfile")
    html.body.innerHTML = .responseText
End With
Set Pcscont = html.getElementById("main").getElementsByTagName("img")
    For Each pcs In Pcscont
        x = x + 1
        Cells(x, 1) = "https:" + Split(pcs.src, ":")(1)
    Next pcs
Set html = Nothing: Set Pcscont = Nothing
End Sub
 
Back
Top