This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
thecrimulo's profile picture

How to download a webpage source

Started by thecrimulo, 01 July 2016 - 03:19 PM
thecrimulo #1
Posted 01 July 2016 - 05:19 PM
Hello there!

So, I'm trying to download a file, I can use pastebin for that, but I need to download some sources from webpages, for example, GitHub. I don't want a GitHub downloader, I want to download the page source and save it into a file.

Thanks
~ thecrimulo
KingofGamesYami #2
Posted 01 July 2016 - 05:44 PM
Try the wget program.
thecrimulo #3
Posted 01 July 2016 - 08:55 PM
It errors for me. event = "key_up", eUrl = 28, content=""
Luca_S #4
Posted 05 July 2016 - 04:31 PM
What? This is strange. Could you post a link to what you are trying to download?
Lemmmy #5
Posted 05 July 2016 - 06:33 PM
It errors for me. event = "key_up", eUrl = 28, content=""

if it helps, you need to pass in a URL like this (though this is probably unrelated to your error):
https://raw.githubusercontent.com/user/repo/branch/file.ext
thecrimulo #6
Posted 05 July 2016 - 06:33 PM
I was testing with two pages, https://google.com, a complex one and unindented, and https://example.org, which is simple and indented
Lemmmy #7
Posted 05 July 2016 - 06:36 PM
I was testing with two pages, https://google.com, a complex one and unindented, and https://example.org, which is simple and indented

exactly what command were you typing?
thecrimulo #8
Posted 05 July 2016 - 06:37 PM
I was testing with two pages, https://google.com, a complex one and unindented, and https://example.org, which is simple and indented
Lemmmy #9
Posted 05 July 2016 - 06:38 PM
I was testing with two pages, https://google.com, a complex one and unindented, and https://example.org, which is simple and indented

exactly what command were you typing?
thecrimulo #10
Posted 05 July 2016 - 06:44 PM
I'm on a server with a version that doesn't have builtin wget, so i tried http://www.computercraft.info/forums2/index.php?/topic/22036-wget-program-file-downloader-gui-much-wow/
Lemmmy #11
Posted 05 July 2016 - 06:54 PM
I'm on a server with a version that doesn't have builtin wget, so i tried http://www.computercraft.info/forums2/index.php?/topic/22036-wget-program-file-downloader-gui-much-wow/

then that's a problem with the program itself