0

i am creating an app to read tags form youtube videos but when i try to download web page using AsyncTask it showing an error like

 </script>
05-21 01:18:37.829 12067-12067/com.improfessional.j.tagfetcher I/System.out:   <noscript>
05-21 01:18:37.829 12067-12067/com.improfessional.j.tagfetcher I/System.out: براہ کرم اپنے براؤزر پر جاوا اسکرپٹ فعال کریں۔
05-21 01:18:37.829 12067-12067/com.improfessional.j.tagfetcher I/System.out:   </noscript>
05-21 01:18:37.829 12067-12067/com.improfessional.j.tagfetcher I/System.out: </html>

which means to enable java script...

And is there a way to download webpage code faster cause AsyncTask is taking noticeable long time. Thank-you

Ibtehaj
  • 5
  • 5

1 Answers1

0

Problem is related with youtube web site. Pages can't be downloaded without browser (javascript). May be you need to use webview ( hidden ) to load page

Check How do I get the web page contents from a WebView?

Community
  • 1
  • 1
Stefan Kanev
  • 311
  • 4
  • 7
  • Okay let me try that... I don't want to run js I just want the whole webpage to be fetched is there no other way like using header to fool it in thinking that it support js or anything​... – Ibtehaj May 20 '17 at 21:52