[Plugin] PawnScraper
#21

Quote:
Originally Posted by ball
View Post
Thanks for yt2mp3 solution. How to get song time duration? I tried the same way as title, but it doesn't work, it gives me null string.
Duration can be scraped easily.The html of site is
HTML Code:
<div class="col-md-9">
     <p>
         <b>Title of Song</b>
     </p>
     <p>
          <b>Duration:</b> 00:03:18
      </p>
</div>
We can use selector like this
PHP Code:
new 
    
Selector:DurationSelector ParseSelector(".col-md-9>p"),
    
Duration[30];
GetNthElementText(html,DurationSelector,1,Duration);//second occurrence so n=1
strmid(Duration,Duration,10sizeof Duration);//remove the Text "Duration: "
DeleteSelector(DurationSelector); 
Then parse it according to your needs.
Reply


Messages In This Thread
PawnScraper - by SyS - 12.11.2018, 16:44
Re: PawnScraper - by Gabriel432135 - 12.11.2018, 16:59
Re: PawnScraper - by kristo - 12.11.2018, 17:12
Re: PawnScraper - by Ermanhaut - 12.11.2018, 19:44
Re: PawnScraper - by Chaprnks - 15.11.2018, 20:38
Re: PawnScraper - by SyS - 24.11.2018, 12:39
Re: PawnScraper - by Infin1ty - 24.11.2018, 17:13
Re: PawnScraper - by AmirSavand - 26.11.2018, 12:14
Re: PawnScraper - by SyS - 26.11.2018, 12:18
Re: PawnScraper - by fiki574 - 26.11.2018, 13:52
Re: PawnScraper - by IllidanS4 - 27.11.2018, 09:57
Re: PawnScraper - by SyS - 27.11.2018, 10:36
Re: PawnScraper - by fiki574 - 27.11.2018, 12:15
Re: PawnScraper - by SyS - 27.11.2018, 12:18
Re: PawnScraper - by IllidanS4 - 27.11.2018, 13:13
Re: PawnScraper - by SyS - 27.11.2018, 13:17
Re: PawnScraper - by fiki574 - 27.11.2018, 14:07
Re: PawnScraper - by fordawinzz - 01.12.2018, 12:17
Re: PawnScraper - by SyS - 01.12.2018, 12:27
Re: PawnScraper - by Marshall32 - 01.12.2018, 13:02
Re: PawnScraper - by SyS - 09.12.2018, 06:29
Re: PawnScraper - by SyS - 16.12.2018, 02:50
Re: PawnScraper - by ipsLuan - 16.12.2018, 05:08
Re: PawnScraper - by SyS - 13.01.2019, 05:31

Forum Jump:


Users browsing this thread: 1 Guest(s)