Categories > Coding > C# >
[QUESTION] how to make a script hub using Rscripts.net?
Posted
(how to make a script hub using Rscripts.net?) I know this sounds stupid but still how do you make one?
!!!!!marcus__!!!!!#8611
https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png
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
Cancel
Post
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
!!!!!marcus__!!!!!#8611
https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png
!!!!!marcus__!!!!!#8611
https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
Replied
just click the raw button on a script and then put the code into a ui libary/gui
Cancel
Post
!!!!!marcus__!!!!!#8611
https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png
Replied
@AE0N well he could make gui that where you type in a certain script it pop ups multiple and you can select them
Cancel
Post
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
Cancel
Post
The matrix sent their agents
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));
}
}
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post