Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Feedback
  3. Viewing source of sites via fetch block no longer works

Viewing source of sites via fetch block no longer works

Scheduled Pinned Locked Moved Feedback
cloud-blocksfeedback
10 Posts 3 Posters 2.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JaecadeJnightJ Offline
    JaecadeJnightJ Offline
    JaecadeJnight
    Mod Helper
    wrote on last edited by
    #1

    05b4d7c3-bafa-48b0-8944-1004274c767a-image.png
    1f77dea7-808d-4ba0-a8e7-f57142f410af-image.png
    b4cc7601-6e6d-41ce-ab51-6fcba1b05ee7-image.png
    I’m aware that you guys are still working on fixing this block to “show dynamic content” and that makes sense, but could you guys instead introduce a new block for static content so that I can access APIs and stuff? I recently found out there’s a dog API to get information on dog breeds and to get pictures of dogs and I have a key and know which endpoints to use (luckily mostly via GET which is what a fetch does) but I can’t use them in CreatiCode because this still doesn’t work.

    It does work for sites like my website and but fails when it comes into contact with things returned as text or JSON or websites that may have code too complicated like indeed.com when I wanna analyse job hirings and stuff like that. The issue with Indeed may actually be that it’s too dynamic due to it using your location to show jobs near you but that’s not the point.

    The new block to just get (generally static) page and non-page (like text files) data could look like this:
    scratchblocks.png
    and if the indeed.com issue is a concern for you guys, then maybe they both could have extra parameter that specifies extra information to personalize page content:
    60d64f41-fec4-48bd-a18c-39f347a11b26-image.png
    in these parameters, the user agent is that of a Chromebook and the location (lat & long) is London, UK. Maybe user agent might be a stretch but the location would surely be useful for somewhat fixing the issue. It’s also probably not worth fixing if it doesn’t work after that since it might think CreatiCode is a bot (as it is) and might not want it scraping its pages, so we should respect its wishes.

    #LLJW
    <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

    CreatiCodeI 1 Reply Last reply
    0
    • JaecadeJnightJ JaecadeJnight

      05b4d7c3-bafa-48b0-8944-1004274c767a-image.png
      1f77dea7-808d-4ba0-a8e7-f57142f410af-image.png
      b4cc7601-6e6d-41ce-ab51-6fcba1b05ee7-image.png
      I’m aware that you guys are still working on fixing this block to “show dynamic content” and that makes sense, but could you guys instead introduce a new block for static content so that I can access APIs and stuff? I recently found out there’s a dog API to get information on dog breeds and to get pictures of dogs and I have a key and know which endpoints to use (luckily mostly via GET which is what a fetch does) but I can’t use them in CreatiCode because this still doesn’t work.

      It does work for sites like my website and but fails when it comes into contact with things returned as text or JSON or websites that may have code too complicated like indeed.com when I wanna analyse job hirings and stuff like that. The issue with Indeed may actually be that it’s too dynamic due to it using your location to show jobs near you but that’s not the point.

      The new block to just get (generally static) page and non-page (like text files) data could look like this:
      scratchblocks.png
      and if the indeed.com issue is a concern for you guys, then maybe they both could have extra parameter that specifies extra information to personalize page content:
      60d64f41-fec4-48bd-a18c-39f347a11b26-image.png
      in these parameters, the user agent is that of a Chromebook and the location (lat & long) is London, UK. Maybe user agent might be a stretch but the location would surely be useful for somewhat fixing the issue. It’s also probably not worth fixing if it doesn’t work after that since it might think CreatiCode is a bot (as it is) and might not want it scraping its pages, so we should respect its wishes.

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by
      #2

      @jeffreyrb03-gmail

      This block currently should already work for simple static sites like

      https://www.google.com/search?q=dog

      We will look into the issue with indeed.com, but most likely it won’t work for such sites that have checks for bots.

      It would also not work for the “view-source” URL, since it expects the input starts with “http”

      JaecadeJnightJ 1 Reply Last reply
      1
      • CreatiCodeI CreatiCode

        @jeffreyrb03-gmail

        This block currently should already work for simple static sites like

        https://www.google.com/search?q=dog

        We will look into the issue with indeed.com, but most likely it won’t work for such sites that have checks for bots.

        It would also not work for the “view-source” URL, since it expects the input starts with “http”

        JaecadeJnightJ Offline
        JaecadeJnightJ Offline
        JaecadeJnight
        Mod Helper
        wrote on last edited by
        #3

        @info-creaticode Ah ok, but could you also make it support “view-source:” as well at least or just another block that will return the exact code?

        #LLJW
        <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

        CreatiCodeI 1 Reply Last reply
        0
        • JaecadeJnightJ JaecadeJnight

          @info-creaticode Ah ok, but could you also make it support “view-source:” as well at least or just another block that will return the exact code?

          CreatiCodeI Offline
          CreatiCodeI Offline
          CreatiCode
          wrote on last edited by
          #4

          @jeffreyrb03-gmail

          We can add an option to return the page content as markdown or html.

          JaecadeJnightJ silvloveS 2 Replies Last reply
          1
          • CreatiCodeI CreatiCode

            @jeffreyrb03-gmail

            We can add an option to return the page content as markdown or html.

            JaecadeJnightJ Offline
            JaecadeJnightJ Offline
            JaecadeJnight
            Mod Helper
            wrote on last edited by
            #5

            @info-creaticode Oh that’s a good idea! Thank you!

            #LLJW
            <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

            CreatiCodeI 1 Reply Last reply
            0
            • CreatiCodeI CreatiCode

              @jeffreyrb03-gmail

              We can add an option to return the page content as markdown or html.

              silvloveS Offline
              silvloveS Offline
              silvlove
              Mod Helper
              wrote on last edited by silvlove
              #6

              This post was removed!

              Reason: I realized that this is NOT what’s going on.

              Forums Moderator.
              Trans girl :3 ~ 14yo
              Friendly and sometimes goofy~!

              1 Reply Last reply
              1
              • JaecadeJnightJ JaecadeJnight

                @info-creaticode Oh that’s a good idea! Thank you!

                CreatiCodeI Offline
                CreatiCodeI Offline
                CreatiCode
                wrote on last edited by
                #7

                @jeffreyrb03-gmail

                This block has been updated:

                12e058f7-94fc-4a41-bd1d-beee9f1f56e1-image.png

                JaecadeJnightJ 2 Replies Last reply
                1
                • CreatiCodeI CreatiCode

                  @jeffreyrb03-gmail

                  This block has been updated:

                  12e058f7-94fc-4a41-bd1d-beee9f1f56e1-image.png

                  JaecadeJnightJ Offline
                  JaecadeJnightJ Offline
                  JaecadeJnight
                  Mod Helper
                  wrote on last edited by
                  #8

                  @info-creaticode thank you

                  #LLJW
                  <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                  1 Reply Last reply
                  0
                  • CreatiCodeI CreatiCode

                    @jeffreyrb03-gmail

                    This block has been updated:

                    12e058f7-94fc-4a41-bd1d-beee9f1f56e1-image.png

                    JaecadeJnightJ Offline
                    JaecadeJnightJ Offline
                    JaecadeJnight
                    Mod Helper
                    wrote on last edited by jeffreyrb03-gmail
                    #9

                    e50ade4b-ac31-45a5-8f43-c90dfc5ab8ec-image.png
                    @info-creaticode it works and it’s great, but could you make it so it returns the full webpage html code instead of just the <body> tag? I also wanna see the <head> tag for getting things like the title of the site and metadata. I’m thinking of now designing my websites so they have special metadata that when used in my CreatiCode web browser, they can have stuff like extra permissions and customizability and whatnot.

                    #LLJW
                    <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                    JaecadeJnightJ 1 Reply Last reply
                    0
                    • JaecadeJnightJ JaecadeJnight

                      e50ade4b-ac31-45a5-8f43-c90dfc5ab8ec-image.png
                      @info-creaticode it works and it’s great, but could you make it so it returns the full webpage html code instead of just the <body> tag? I also wanna see the <head> tag for getting things like the title of the site and metadata. I’m thinking of now designing my websites so they have special metadata that when used in my CreatiCode web browser, they can have stuff like extra permissions and customizability and whatnot.

                      JaecadeJnightJ Offline
                      JaecadeJnightJ Offline
                      JaecadeJnight
                      Mod Helper
                      wrote on last edited by
                      #10

                      @jeffreyrb03-gmail thank you guys for adding that in I just saw it gives the full code now

                      #LLJW
                      <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • CreatiCode