3

Though I am new to web scraping, but I have a hand on experience of web scraping using VBA (Excel) I am facing the following problem:

I have tried all methods (ImportXML, ImportHTMP, ImportData, etc.) for importing data from web-page but getting #N/A error. URL from which I am trying to import is Link and the formula is as following (C3, contains a link):

=importXML(C3,"//td/a/@href")

From this method, I want to import all links available in a table (I want to get cartoon episodes' URL from web-page of Cartoon series).

Please help me to figure out the mistake I am performing.

0

1 Answer 1

1

=ARRAYFORMULA(TRANSPOSE(SPLIT(JOIN(" ", 
 "https://kimcartoon.to"&QUERY(IMPORTXML(C3, "//a/@href"), 
 "select Col1 where Col1 contains '"&("pisode")&"' ")), " ")))

enter image description here

3
  • I have already tried this kind of trick with Filter formula (using 'Cartoon' keyword instead of 'pisode'); but my concern is How to deal with table (or 'td' tag) using ImportXML formula?. However, thank you so much for your quick reply. Commented Jan 22, 2019 at 17:21
  • @SaadBinKhalid here: youtube.com/watch?v=7B4tPczv-H8
    – user0
    Commented Jan 22, 2019 at 17:28
  • @SaadBinKhalid and: youtube.com/watch?v=pwZ44kAeiOo
    – user0
    Commented Jan 22, 2019 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.