I’ve been trying to port some JavaScript code to Lua. The code encodes and decodes data to and from a binary stream. I am having an issue when trying to port some JavaScript code that can contain signed integers. The JavaScript code looks as such: This code is based on code found in this library: https://github.com/hathora/bin-serde-ts/blob/develop/index.ts I’ve added simplified versions
Tag: lua
Scrapy + splash: can’t select element
I’m learning to use scrapy with splash. As an exercise, I’m trying to visit https://www.ubereats.com/stores/, click on the address text box, enter a location and then press the Enter button to move to next page containing the restaurants available for that location. I have the following lua code: When I click on “Render!” in the splash API, I get the
Splash API/lua error: attempt to index local element (a nil value)
I’m writing a lua script that I want to use with scrapy + splash for a website. I want to write a script that enters a text and then clicks on a button. I have the following code: Right now I’m using the splash API to test if my code runs properly. When I click “Render!” I get the following