Resource icon
  • 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!

Contributors
Blueyescat
Supported Minecraft Versions
  1. 1.7
  2. 1.8
  3. 1.9
  4. 1.10
  5. 1.11
  6. 1.12
Skraper
Web scraping in Skript!

Source - Documentation - Examples
Example
code_language.skript:
command skraper:
    trigger:
        set {_url} to "https://www.youtube.com/results?search_query=KAYNAK"
        set {_agent} to "Mozilla/5.0"
        set {_timeout} to 10000
        set {_referer} to "https://www.google.com"
     
        request document from {_url} with user agent {_agent} and timeout {_timeout} and referrer {_referer}
     
        set {_doc} to last received document
     
        set {_first-elm} to first element of elements "a[href]" of document {_doc}
     
        send html text of {_first-elm}
     
        send inner html of element {_first-elm}
  • uganda.png
    uganda.png
    77.9 KB · Views: 340
Author
Nano
Downloads
2,229
Views
2,229
First release
Last update
Rating
5.00 star(s) 2 ratings

Latest updates

  1. Some new stuff!

    Updated pom.xml and plugin.yml (I always forget about them) Added "Body of document"...
  2. Useful stuff!

    This update is a good one, promise me. Added option to set user agent in request document...
  3. A complete release!

    Some bug fixes Added new expressions - Text of htmlelement Thanks to @WheezyGold7931 for fixing...

Latest reviews

kullanmadım ama sen yaptıysan muhakkak başarılıdır
Nano
Nano
Yorumun için teşekkürler.
Loving it that you can get now html tags/or even other html elements via Skript now! :D

Though, I'm using WebSockets, this addon could be in future having more potential than some other addons... *cough*U...... 3 (IIRC)*cough*
Nano
Nano
Thank you for your review!