Anyone happen to know of a popular/good LUA library for HTML parsing/scripting/scraping?
EDIT: e.g. equivalent to a Nokogiri in Ruby world, or Beautifulsoup in Python.
Anyone happen to know of a popular/good LUA library for HTML parsing/scripting/scraping?
EDIT: e.g. equivalent to a Nokogiri in Ruby world, or Beautifulsoup in Python.
Have you searched Google… there are a few out there.
https://github.com/luaforge/html/tree/master/html
https://github.com/thenumbernine/htmlparser-lua
you may have to convert the reading of files to Corona’s but usually most of the code should be the same.
Larry
sorry - I meant to really put the emphasis on screen scraping - so a library/framework for this along the lines/popularity of Nokogiri in Ruby world, or Beautifulsoup in Python world…
I’m not familiar with Nokogiri but I am familiar with and have used Beautiful Soup. I would be surprised if you found a Lua equivalent. I suspect Corona/Lua is not well-suited for this in the client. You might be better off, if network connectivity is available, to have a Python-equipped backend do this work. (If you’re scraping pages, presumably you have a network connection.)
Have you searched Google… there are a few out there.
https://github.com/luaforge/html/tree/master/html
https://github.com/thenumbernine/htmlparser-lua
you may have to convert the reading of files to Corona’s but usually most of the code should be the same.
Larry
sorry - I meant to really put the emphasis on screen scraping - so a library/framework for this along the lines/popularity of Nokogiri in Ruby world, or Beautifulsoup in Python world…
I’m not familiar with Nokogiri but I am familiar with and have used Beautiful Soup. I would be surprised if you found a Lua equivalent. I suspect Corona/Lua is not well-suited for this in the client. You might be better off, if network connectivity is available, to have a Python-equipped backend do this work. (If you’re scraping pages, presumably you have a network connection.)