mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
add baidu-search.lua
This commit is contained in:
parent
22ffbc5b9c
commit
3605c31dc2
@ -54,6 +54,25 @@ $ docker-compose up -d
|
||||
|
||||
## client
|
||||
|
||||
```lua
|
||||
-- baidu-search.lua
|
||||
|
||||
function main(splash)
|
||||
splash:go('https://www.baidu.com/')
|
||||
splash:wait(1)
|
||||
splash:select('#kw'):send_text('google')
|
||||
splash:wait(1)
|
||||
splash:select('#su'):click()
|
||||
splash:wait(1)
|
||||
splash:evaljs([[
|
||||
$('#content_left').css('padding', '0');
|
||||
]])
|
||||
splash:set_viewport_full()
|
||||
splash:wait(1)
|
||||
return splash:select('#content_left'):png()
|
||||
end
|
||||
```
|
||||
|
||||
```lua
|
||||
-- youtube-logo.lua
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user