Text from website

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Marsbar

Active Member
Mar 31, 2019
131
4
18
18
Hi. I am trying to create a skript, which finds the amount of downloads from this site:
https://mcskripts.dk/search/skripts/id/2333 It is danish tho
My code:

Code:
command /getIt:
    trigger:
        send "https://mcskripts.dk/search/skripts/id/2333"
        #stop
        loop 10000 times:
            set {_c} to line loop-number from url "https://mcskripts.dk/search/skripts/id/2333"
            #<p style="font-size:175%;padding:5px 0px;margin-top:-4px;">550</p> 550 is the count of downloads
            set {_c} to "%{_c}%"
            replace all "1", "2", "3", "5", "4", "6", "7", "8", "9", "0" in {_c} with ""
            "%{_c}%" is "<p style=""font-size:%%;padding:px px;margin-top:-px;""></p>":
                send line loop-number from url "https://mcskripts.dk/search/skripts/id/2333" parsed as a text
                stop

This is the error in the console: (Yes i have skutilities)
Code:
[skUtilities] v0.9.2: Error Reading from: 'https://mcskripts.dk/search/skripts/id/2333' Is the site down? (ExprUrlReadLine.class)

Thx!
 
Status
Not open for further replies.