Skip to content
Advertisement

Tag: lua

Number sign issue when porting JavaScript code to Lua

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

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

Advertisement