Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
local io = require("io")
local http = require("socket.http")
local ltn12 = require("ltn12")
print("Search: ")
search = io.read()
myurl = 

http.request{
url = myurl,
sink = ltn12.sink.file(io.stdout)
}


I was trying to find a definition from Internet. I want to write this project in Lua.
I thought i use an search engine here fireball.de and take the first finding. And download this one then.
How i can store the page "http://www.fireball.de/ajax.asp?q="..search as file on my pc and find the first link ? Another search engine is also ok. But this search engine make a good readable output.
Posted
Updated 26-Dec-13 9:41am
v2
Comments
ZurdoDev 26-Dec-13 15:46pm    
What?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900