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
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| import json | |
| import threading | |
| from autobahn.twisted.websocket import WebSocketClientFactory, \ | |
| WebSocketClientProtocol, \ | |
| connectWS | |
| from twisted.internet import reactor, ssl |
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 requests | |
| from bs4 import BeautifulSoup | |
| headers = { | |
| 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' | |
| } | |
| login_data = { | |
| 'name': '<username>', | |
| 'pass': '<password>', |
OlderNewer