Wolfram: Read File from Web
read file from web
here's how to read a file from the web in Wolfram language.
(similar to unix curl or wget)
just use Import
.

xx = Import["http://xahlee.info/emacs/emacs/doge.txt" ] xx
Download a File from Web
URLDownload[URL]
-
Download a file.
returns a file object that contains the full path of the downloaded file, e.g.
File["C:\Users\xah\AppData\Local\Temp\doge-b3f932c7-c1d3-4289-b8a3-28a95e9c6ce2.txt"]
by default, file is downloaded to
$TemporaryDirectory (* C:\Users\xah\AppData\Local\Temp *)
xx = URLDownload["http://xahlee.info/emacs/emacs/doge.txt" ] (* File[C:\Users\xah\AppData\Local\Temp\doge-b3f932c7-c1d3-4289-b8a3-28a95e9c6ce2.txt] *)
WolframLang, Shell Scripting Tasks
- Wolfram: Shell Scripting Tasks
- Wolfram: Navigate Directory
- Wolfram: List Files (Walk Directory)
- Wolfram: File Path Functions
- Wolfram: Delete Dir
- Wolfram: is File or Dir
- Wolfram: File Exist
- Wolfram: Get File Date
- Wolfram: Get File Size
- Wolfram: Print File Content
- Wolfram: Get File Hash
- Wolfram: Read File
- Wolfram: Read File from Web
- Wolfram: Write File
- Wolfram: Load a Package or File
- Wolfram: Get Environment Variable
- Wolfram: Date Time
- Wolfram: Find Replace Script