DroidsOnRoids / jspoon

Annotation based HTML to Java parser + Retrofit converter
https://www.thedroidsonroids.com/blog/scraping-web-pages-with-retrofit-jspoon-library
MIT License
323 stars 23 forks source link

How to get stuff from <script> tag? #76

Open Romamok opened 4 years ago

Romamok commented 4 years ago

I have:

<aside id="box-sounds" class="clearfix list-files">                       
   <script>
        jQuery(function ($) {
    //some javascript bloat                                          
        });
    </script>
    <div id='player-main-audycja_2422547' class="player-main-audycja"></div>
</aside>

I'm trying to get it out with:

@Selector(".list-files > script")
var l3: String? = null

but I'm getting empty String.