[Plugin] PawnScraper - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (
https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] PawnScraper (
/showthread.php?tid=660753)
Re: PawnScraper -
SyS - 09.12.2018
Quote:
Originally Posted by ball
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,10, sizeof Duration);//remove the Text "Duration: "
DeleteSelector(DurationSelector);
Then parse it according to your needs.
Re: PawnScraper -
SyS - 16.12.2018
Quote:
Originally Posted by Amagida
I can't do this, because its just game host. discord-connector uses libssl as i know, but i can use it.
|
Maybe your server is using older linux.Can you try this build.
https://github.com/Sreyas-Sreelal/pa...x86-Ubuntu.zip
It's compiled on Ubuntu 14.04 with older openssl (1.0) and glibc
Re: PawnScraper -
ipsLuan - 16.12.2018
Good job.
Re: PawnScraper -
SyS - 13.01.2019
New Version (v0.2.0)
https://github.com/Sreyas-Sreelal/pa...ases/tag/0.2.0
Changes- Added CreateHeader,DeleteHeader natives
- Changed function signatures of HttpGet and HttpGetThreaded (optional parameter header is added)
- Added new constant INVALID_HEADER
More information available on the main post