The Private Package of Showm Company.
Project description
scode
Installaion (설치)
cmd창을 열어서 하단의 코드를 입력 후 실행.
pip install scode
Example (사용예시)
from scode.selenium import * # scode의 selenium 모듈의 모든 것을 임포트
driver = load_driver()
or
from scode.selenium import load_driver # scode의 selenium 모듈의 load_driver만 임포트
driver = load_driver()
or
import scode.selenium # scode의 selenium 모듈을 임포트, 이 경우에는 하단처럼 전체 경로를 입력해야 함
driver = scode.selenium.load_driver()
or
import scode # 이 경우에는 하단처럼 전체 경로를 입력해야 함
driver = scode.selenium.load_driver()
구조도 (트리구조)
- scode
- is_latest_version() : 버전 체크하는 함수
- update_scode() : 모듈 업데이트하는 함수
- refresh() : 모듈 리로드하는 함수
- dropbox
- dropbox_upload_file(src_file_path, destination_path) : 드롭박스에 파일을 업로드 하는 함수
- dropbox_upload_folder(folder_path, destination_path) : 드롭박스에 폴더를 업로드 하는 함수
- paramiko
- command(ssh: paramiko.SSHClient, query: str, timeout = None) : 서버에 명령어를 실행하는 함수
- execute_sql_query(ssh: paramiko.SSHClient, user_id: str, user_pw: str, db_name: str, query: str, timeout = None) : 파라미코로 mysql 쿼리를 실행하는 함수
- ssh_connect(hostname: str, username: str, password: str) : 연결된 ssh를 가져오는 함수
- selenium
- get_status(driver: Webdriver) : 드라이버의 상태를 가져오는 함수
- load_driver(chrome_options=None, mode=None, userId=None, port=9222, **kwargs) -> WebDriver : 드라이버를 생성하는 함수
- load_driver2(port=9222) : 기존의 크롬드라이버를 사용하지 않고 일반 chrome.exe를 실행하는 함수
- load_cache_driver(userId, chrome_options = None, **kwargs) : 캐시 드라이버를 생성하는 함수
- n_login(driver: WebDriver, nid: str, pwd: str, keep_login: bool=True, ip_safe: bool=False, force: bool=False) : 네이버 로그인을 하는 함수
- t_login(driver, tid, pwd) : 트위터 로그인을 하는 함수
- line_login(driver: WebDriver, line_email, line_passwd) : 라인 로그인을 하는 함수
- daum_mail_login(driver, did, pwd) : 다음 로그인을 하는 함수
- scrollDownUntilPageEnd(driver, SCROLL_PAUSE_SEC = 1) : 페이지 끝까지 스크롤을 내리는 함수
- solve_reCAPTCHA(driver) : 구글 리캡차를 자동으로 푸는 함수
- telegram
- TelegramSender : 클래스
- send(self, chat_id: str, text: str, **kwargs) : 텔레그램으로 메시지를 전송하는 함수
- send_photo(self, chat_id: str, img_path: str, **kwargs) : 텔레그램으로 이미지를 전송하는 함수
- TelegramSender : 클래스
- util
- fwrite(path: str, text, encoding=None) : 파일 끝에 문자열을 추가해주는 함수
- distinct(myList: list) : 중복 제거된 리스트를 리턴하는 함수
- ip_change2() : IP를 바꿔주는 함수
- http_remove(link: str) : 링크에 http를 없애는 함수
- http_append(link: str) : 링크에 http를 붙히는 함수
- get_code_from_image(img_path: str) : 이미지의 글자를 반환하는 함수
- sound_alert(msg: str) : 메시지를 화면에 뿌리고 엔터를 입력할 때까지 알람을 울리는 함수
- schedule
- run_everyday_between(start_time: str, end_time: str, job, *args, **kwargs) : 매일 지정된 시간 사이에 지정된 함수를 실행하는 함수
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scode-0.7.0.tar.gz
(387.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
scode-0.7.0-py3-none-any.whl
(385.5 kB
view details)
File details
Details for the file scode-0.7.0.tar.gz.
File metadata
- Download URL: scode-0.7.0.tar.gz
- Upload date:
- Size: 387.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9c38dd3388adea484137700131b590efe8c16e42582c761b9e5eb0f5078abbb
|
|
| MD5 |
3432ae2df945456439bca9492b9c77fe
|
|
| BLAKE2b-256 |
e018000b7dd5ded47474dccbf41537c7f374ce16e9d4f897462cf3b4c302cd5a
|
File details
Details for the file scode-0.7.0-py3-none-any.whl.
File metadata
- Download URL: scode-0.7.0-py3-none-any.whl
- Upload date:
- Size: 385.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f63894fb2df846537bdda2de7f3dd0139a494c130a178f1660bf20387ed0a99
|
|
| MD5 |
378597b328adf7c48600380ba16d60e1
|
|
| BLAKE2b-256 |
50fe597e401036ff988838dfaa023131b04268459e00b130e8e47122307eece1
|