Categories > Coding > C# >

[QUESTION] how to make a script hub using Rscripts.net?

Posts: 2

Threads: 2

Joined: Nov, 2022

Reputation: 0

Posted

(how to make a script hub using Rscripts.net?) I know this sounds stupid but still how do you make one?

  • 0

Posts: 173

Threads: 16

Joined: Sep, 2022

Reputation: 15

Replied

yes, this sounds stupid also what do you mean by how to make a script hub using Rscripts.net

 

Oh I realized what he meant 

  • 0

marcus__

S.K.I.D

vip

Posts: 343

Threads: 19

Joined: Nov, 2022

Reputation: 28

Replied

@Pekka

he means implementing something like krnl_beta's community tab

  • 0

!!!!!marcus__!!!!!#8611

https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png

aeon

Owner of Voyager

vip

Posts: 264

Threads: 25

Joined: Sep, 2022

Reputation: 12

Replied

@marcus__ well, kinda, but more so just like a cloud script hub

  • 0

SeizureSalad

i love femboys

Posts: 1018

Threads: 73

Joined: Mar, 2021

Reputation: 37

Replied

no spoonfeeding but me explain basic steps

 

  • send request to api i guess
  • parse json response
  • add new wpf/winforms element with information from api
  • ???
  • profit

  • 0

"Questionable intellegence, but I like the mystery" - CubeFaces

https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png

marcus__

S.K.I.D

vip

Posts: 343

Threads: 19

Joined: Nov, 2022

Reputation: 28

Replied

@SeizureSalad

rscripts

doesnt have api i think

 

  • 0

!!!!!marcus__!!!!!#8611

https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png

aeon

Owner of Voyager

vip

Posts: 264

Threads: 25

Joined: Sep, 2022

Reputation: 12

Replied

@marcus__ could js use rbxscripts or wtv that other one is caleld

  • 0

marcus__

S.K.I.D

vip

Posts: 343

Threads: 19

Joined: Nov, 2022

Reputation: 28

Replied

  • 0

!!!!!marcus__!!!!!#8611

https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png

SeizureSalad

i love femboys

Posts: 1018

Threads: 73

Joined: Mar, 2021

Reputation: 37

Replied

@marcus__ then either use one that has an api or make your own by web scraping

  • 0

"Questionable intellegence, but I like the mystery" - CubeFaces

https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png

Posts: 14

Threads: 0

Joined: Dec, 2022

Reputation: 0

Replied

just click the raw button on a script and then put the code into a ui libary/gui

  • 0

marcus__

S.K.I.D

vip

Posts: 343

Threads: 19

Joined: Nov, 2022

Reputation: 28

Replied

@SeizureSalad

yeah

wait which have apis?

  • 0

!!!!!marcus__!!!!!#8611

https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png

aeon

Owner of Voyager

vip

Posts: 264

Threads: 25

Joined: Sep, 2022

Reputation: 12

Replied

@Roman Ruins Entire Point, Plus Way To Long.

  • 0

Posts: 14

Threads: 0

Joined: Dec, 2022

Reputation: 0

Replied

@AE0N well he could make gui that where you type in a certain script it pop ups multiple and you can select them

  • 0

Posts: 33

Threads: 7

Joined: Dec, 2021

Reputation: 0

Replied

Just gonna bump this really quickly just to clarify why this isn't possible

This is a raw link for Rscripts.net: https://rscripts.net/raw/Ascend_%7C_Coin_%7C_Gummy_%7C_Starfall_autofarm_63de7e93e4fc3.txt

You can always import the txt file but that would defeat the point.

This is how the files are stored: https://rscripts.net/raw/
You can't access there cdn cause it returns a 403(Forbidden). They basically block access to the files
Unless they open that up for public viewing or create there own API, theres no luck

Sorry but I hope this solves everything for you
This should bring closer as I didn't really see a solid answer

  • 0

The matrix sent their agents

Posts: 3

Threads: 2

Joined: Feb, 2023

Reputation: 0

Replied

Try this code


        public async void rscripts()
        {
            WebClient client = new WebClient();
            HtmlWeb web = new HtmlWeb();
            string url1 = "https://rscripts.net/ajaxSearch?term=" + textBox1.Text.ToLower() + "&user=0";
            HtmlAgilityPack.HtmlDocument doc1 = await web.LoadFromWebAsync(url1);


            var links = doc1.DocumentNode.SelectNodes("//a");
            foreach (var link in links)
            {
                string href = link.GetAttributeValue("href", "/html/body/div[2]/a");
                Debug.WriteLine(href);

                HtmlAgilityPack.HtmlDocument doc2 = await web.LoadFromWebAsync("https://rscripts.net" + href);

                var images = doc2.DocumentNode.SelectNodes("//img");

                for (int i = 1; i < 2 && i < images.Count; i++)
                {
                    var image = images[i];
                    string src = image.GetAttributeValue("src", "");
                    if (src.First<char>() == '/')
                        src = "https://rscripts.net" + src;
                }
                var Title = doc2.GetElementbyId("title");
                string text = Title.InnerHtml;
                var Script = doc2.DocumentNode.SelectSingleNode("//a[@id='download']");
                string LinkScript = Script.GetAttributeValue("href", "");
                if (LinkScript.First<char>() == '/')
                    LinkScript = "https://rscripts.net" + LinkScript;
                string DownloadScript = client.DownloadString(new Uri(LinkScript));
            }
        }
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )