Web Information

  • 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 community!

    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.

PatoFrango

Active Member
Jul 12, 2017
240
14
18
Hi,

I’m looking for a feature in Skript that detects new things that have happened in a website. For example, I have a command on my server that gives you the link to the server’s blogspot. How can I check if there’s a new post on the blog and warn the player through Skript? Is it even possible? Would it really require Skript to be compatible with blogspot’s API?

Thanks in advance.
 
Hi,

I’m looking for a feature in Skript that detects new things that have happened in a website. For example, I have a command on my server that gives you the link to the server’s blogspot. How can I check if there’s a new post on the blog and warn the player through Skript? Is it even possible? Would it really require Skript to be compatible with blogspot’s API?

Thanks in advance.
Use Reqn
 
What do you mean?
So the only time I used http requests was with JS, and it was just to get/put data into a .json file, so I'm kinda new on the topic and wanted to know how I can get certain data from an actual website, in this case how can I get the title of the latest article of the blog.
 
So the only time I used http requests was with JS, and it was just to get/put data into a .json file, so I'm kinda new on the topic and wanted to know how I can get certain data from an actual website, in this case how can I get the title of the latest article of the blog.
Well you will have to send a get request to the page with the title on it, then you find the part with the title (most websites use classes, e.g. `<h1 class="title">` or id, e.g. `<h1 id="title">`). You can make your script search for that part in the body of the html response, and that's where the data is. If you have skript-mirror, String#indexOf(str) will be useful.
 
Well you will have to send a get request to the page with the title on it, then you find the part with the title (most websites use classes, e.g. `<h1 class="title">` or id, e.g. `<h1 id="title">`). You can make your script search for that part in the body of the html response, and that's where the data is. If you have skript-mirror, String#indexOf(str) will be useful.
Okay, I will take a deeper look at this. I might need help later. Thank you.
 
  • Like
Reactions: TPGamesNL
Status
Not open for further replies.