This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/url" | |
"time" | |
"github.com/gorilla/websocket" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socketio | |
sio = socketio.Client() | |
@sio.event | |
def connect(): | |
sio.emit('subscribe', 'lightning_executions_FX_BTC_JPY') | |
@sio.event | |
def lightning_executions_FX_BTC_JPY(data): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
url = "https://example.com/login/" | |
user = "username" | |
password = "password" | |
driver = webdriver.Chrome() | |
driver.implicitly_wait(3) |