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
| # This script uses code snippets from the following sources: | |
| # - https://github.com/asweigart/pyperclip/blob/master/src/pyperclip/__init__.py | |
| # - https://stackoverflow.com/questions/101128/how-do-i-read-text-from-the-windows-clipboard-in-python | |
| import ctypes | |
| import threading | |
| import time | |
| import tempfile | |
| import pathlib | |
| import os |
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 as req | |
| import urllib.parse as uparse | |
| from bs4 import BeautifulSoup as bs | |
| sso_url = 'https://mysso.cust.edu.cn/cas/login?service=https://portal.cust.edu.cn/custp/shiro-cas' | |
| sso_response = req.get( | |
| url=sso_url | |
| ) | |