Announcement

Collapse
No announcement yet.

Wget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wget

    I have been using wget now for many years, I used it alot on my Anime image board tools I created in the past what called on it's API to return a json list Anyone whom was around when shadow was you will of seen our posts many times.

    Well many people always seemed to be confused on how we did this when http was so slow or locked up the app shadow used curl at first I believe and then we both moved to wget, shadow was much better at this and my code is still based on this original concept.

    So I have created a plugin based on wget 1.21.1

    This little plugin is only basic right now as I only tested it on/in my anime app for calling a API.

    Wget for AMS:
    With this plugin you can used the 3rd party tool wget to do api called to websites rather then using AMS's slower http call, and on larger calls what you know will block the app you will be able to do these calls without the worry of AMS locking up.


    ChangeTempDIR:
    As the name says, this changed the temp folder from %temp% to what ever you pick

    Wget.DisableCleanUP:
    Some times your API might be playing up or your not sure what it's returning as, this will enable you to disable the deletion option of ~Wams.temp file what is the source of your calls return

    Wget.SetBit:
    This option shouldn't be needed but if you do need to drop back to to a 32 bit version you can use this do do that.


    Wget.WebCall:
    This is the main function what you will need.
    Help file is wrong here Request type is boolean. (GET = false, POST = true)

    There are a hand full of preset user agents for windows using Firefox more will be added in the future, your able to also set your own using a string.


    The SetQuiet and SetSwtich's functions haven't really been tested yet.

    SetQuiet disabled the -q option in wget but we don't show the running of the cmd window there for this might not return anything different.
    SetSwitchs lets you set other wget switchs.

    Wget 0.0.0.1.zip

    Wget 0.0.0.4 Download


    I do have plans on updating this more, EG arugments using the --post-file option rather then --post-data option, and more but for now I wanted to get it out there and get peoples ideas on views.
    I also want to try and get a tor version but I never been able to get any tor commandline tool working with AMS as of yet.
    Attached Files
    Last edited by kingzooly; 04-13-2023, 06:31 PM.
    Plugins or Sources MokoX
    BunnyHop Here

  • #2
    Nice work, nice scalability too.
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      Originally posted by Imagine Programming View Post
      Nice work, nice scalability too.
      I want to do more with it, but I haven't been well enough to study the other options, I have been using it in many other projects and good few people have asked how, rather then say here take code and hope it works I made a little plugin.

      The wording could be better, the names of function could be better but it's been a long time since I have created anything for people to use, been able to torfi ams easy well from what I been reading isn't easy but at least wget does a good job to talk to websites useful for API's in to AMS.

      I am open to ideas and things like this, also IP ... HI hope your well bud and thanks for the reply.
      Plugins or Sources MokoX
      BunnyHop Here

      Comment


      • #4
        Originally posted by kingzooly View Post

        I want to do more with it, but I haven't been well enough to study the other options, I have been using it in many other projects and good few people have asked how, rather then say here take code and hope it works I made a little plugin.

        The wording could be better, the names of function could be better but it's been a long time since I have created anything for people to use, been able to torfi ams easy well from what I been reading isn't easy but at least wget does a good job to talk to websites useful for API's in to AMS.

        I am open to ideas and things like this, also IP ... HI hope your well bud and thanks for the reply.
        Hi bud I'm well and I hope you are too. I've been really busy at work the past year, but that's going to change this week (switching jobs).

        Bas Groothedde
        Imagine Programming :: Blog

        AMS8 Plugins
        IMXLH Compiler

        Comment


        • #5
          Originally posted by kingzooly View Post
          I have been using wget now for many years, I used it alot on my Anime image board tools I created in the past what called on it's API to return a json list Anyone whom was around when shadow was you will of seen our posts many times.

          Well many people always seemed to be confused on how we did this when http was so slow or locked up the app shadow used curl at first I believe and then we both moved to wget, shadow was much better at this and my code is still based on this original concept.

          So I have created a plugin based on wget 1.21.1

          This little plugin is only basic right now as I only tested it on/in my anime app for calling a API.

          Wget for AMS:
          With this plugin you can used the 3rd party tool wget to do api called to websites rather then using AMS's slower http call, and on larger calls what you know will block the app you will be able to do these calls without the worry of AMS locking up.


          ChangeTempDIR:
          As the name says, this changed the temp folder from %temp% to what ever you pick

          Wget.DisableCleanUP:
          Some times your API might be playing up or your not sure what it's returning as, this will enable you to disable the deletion option of ~Wams.temp file what is the source of your calls return

          Wget.SetBit:
          This option shouldn't be needed but if you do need to drop back to to a 32 bit version you can use this do do that.


          Wget.WebCall:
          This is the main function what you will need.
          Help file is wrong here Request type is boolean. (GET = false, POST = true)

          There are a hand full of preset user agents for windows using Firefox more will be added in the future, your able to also set your own using a string.


          The SetQuiet and SetSwtich's functions haven't really been tested yet.

          SetQuiet disabled the -q option in wget but we don't show the running of the cmd window there for this might not return anything different.
          SetSwitchs lets you set other wget switchs.

          [ATTACH]n307252[/ATTACH]


          I do have plans on updating this more, EG arugments using the --post-file option rather then --post-data option, and more but for now I wanted to get it out there and get peoples ideas on views.
          I also want to try and get a tor version but I never been able to get any tor commandline tool working with AMS as of yet.
          Thank you very much,
          ​​​​​​I desperately needed it

          Comment


          • #6
            Originally posted by Imagine Programming View Post

            Hi bud I'm well and I hope you are too. I've been really busy at work the past year, but that's going to change this week (switching jobs).
            Good luck in the new job hopefully you will have some you time with the new job.

            Originally posted by Sina Dehghani View Post

            Thank you very much,
            ​​​​​​I desperately needed it
            This isn't any different to the code I already provided you and explained how to use, so if you couldn't use my code this will offer the same problems as the code did, but if you have found this useful then your welcome.
            Plugins or Sources MokoX
            BunnyHop Here

            Comment


            • #7
              Hello, tell me, using this plugin, can I log in to the https site and download files from the specified links?

              Comment


              • #8
                Everything you can do with Wget you should be able to do with this.
                Plugins or Sources MokoX
                BunnyHop Here

                Comment


                • #9
                  Originally posted by kingzooly View Post
                  Everything you can do with Wget you should be able to do with this.
                  @ kingzooly , Kindly help me please... how to use chrome or other browser in my AMS8,
                  i have no plugins.. newbie here,
                  any help much appreciated
                  Thank You !

                  Comment


                  • #10
                    what's the rar password

                    Comment


                    • #11
                      Originally posted by Poison_ivy View Post

                      @ kingzooly , Kindly help me please... how to use chrome or other browser in my AMS8,
                      i have no plugins.. newbie here,
                      any help much appreciated
                      Thank You !
                      Please don't hijack, A: old threads, B:hijacking a topic for help your not welcome to even get.​

                      Originally posted by theteacher View Post
                      what's the rar password
                      What are you on about? for one it's a bloody zip I will never post a rar it would zip or 7zip if you can't use the forum the right way then I would say your in the wrong place sorry
                      Plugins or Sources MokoX
                      BunnyHop Here

                      Comment


                      • #12
                        interesting information

                        Comment


                        • #13
                          Wget 0.0.0.4
                          ​It's been a white. so what's changed
                          in 0.0.0.2 I fixed the Wget.SetSwitch function not calling at all
                          in 0.0.0.2 I added AutoPlayMediaStudio and AutoPlayMediaStudio_XClassic X from 4 to 7 this will set the User Agent to AutoPlay Media Studio X.0 where x is 4 to 8 - Why? just because I could I guess no idea why.


                          in 0.0.0.3 I made the function Wget.SetSwitch to be useful and also convert -H= in to --header as it was failing to work, from what I read for some reason that switch was missing from the
                          windows bin but I swear at times it worked but I didn't question it.
                          in 0.0.0.3 I added Wget.SetTimeout built in switch's for this are WgetTimeoutDefault (900 Seconds) and WgetTimeoutAMS (20 Seconds), this function will accept any number above 0
                          also added a little check if it's > then 0 or a number and if not default it back to 20, the Plugins default is 20 Wgets default is 900

                          in 0.0.0.4 updated to 1.21.3 for both 32 & 64 versions
                          in 0.0.0.4 added missing Wget license
                          in 0.0.0.4 fixed the Post option in Wget.WebCall I had the post option but didn't include the option to include the post-data table, this as been fixed
                          in 0.0.0.4 fixed a lot of bugs around Wget.SetSwitch and Wget.WebCall
                          in 0.0.0.4 fixed a problem where the new exe's wasn't unpacking and fixed some stupid tired coding

                          I ended up updating this because I needed to use Authorization headers in AMS without needing to fine LuaCom's I can never find the most update bins and I remembers I created wget can that do it lol but soon as I tried I remembered I never finished the Plugin where I would need to have it to get that to work so here it is lol.

                          Wget.zip

                          So this is a to dated version of the plugin and wget with functions finished and code fixed lol, you can now send headers to a server very simple and yes it saves a file to temp file when it's doing it but deletes it soon as it's finished with that file.


                          Future if I update it again maybe?
                          Create away to manage Downloads and resume downloads.
                          Stream line some of the other wget functions so you don't have to use the flags/switchs like proxy settings and so on.


                          I am also open to other ideas, I never use wget more then just api submitting, I stopped using curl as it always did strange things at times I always got better track record from wget.


                          Downloading and using this plugin you are agreeing that you wont re-host it else where, using this plugin from another source could be damaging to yourself and computer as you don't know
                          if they have changed the embed wget or anything, please stay safe and only download from here, in the future I might also up it up on my own website but if it's not from a service I own or IR's website DON'T download it, Also this Plugin is NOT for all the 3rd party sites it's for the IR community, I am here, I am giving back to here, they can create there own.
                          Plugins or Sources MokoX
                          BunnyHop Here

                          Comment


                          • #14
                            There will be a update not sure when a small one kind of, and that's the option to return headers as well if the server as send them back for you. once again working with this plugin and I wanted to send the auth key back via a header that my app uses for all it's calls when you login so this will be added. I have to tweak the cli command a little as headers need there -S call before the url and things like this so I have to mod it a little.

                            What I might do is not add the header option but change the SetSwitchs command to SetSwitchs("YOURSWITCHS", W_Before/W_After) so the user can define where they add there switch's them selves.
                            Plugins or Sources MokoX
                            BunnyHop Here

                            Comment


                            • #15
                              Also seems File.Run as some kind of limt on it, I might have a work around for this two later but right now all my bloody work is broken YAY, I was told to walk away from AMS but did I listen .... well guess not lol
                              Plugins or Sources MokoX
                              BunnyHop Here

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎