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) : 매일 지정된 시간 사이에 지정된 함수를 실행하는 함수
Metadata
Release files for scode 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scode-0.7.1.tar.gz | 387.4 kB | Without provenance | Details for scode-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scode-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for scode-0.7.1-py3-none-any.whl |
Total release size: 772.9 kB
Release files / scode-0.7.1.tar.gz
| Download URL | scode-0.7.1.tar.gz |
|---|---|
| Size | 387.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
147bcb4f8474cc2c3ada4f8223557f90a67719b8809c98808a8d42b1ce4072b8
|
|
BLAKE2b-256 checksum How to use checksums |
26b1dca8b3d982a55e89989047dc0bbd10bb823c8fba5aa23188a00f72a74add
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.1
|
Release files / scode-0.7.1-py3-none-any.whl
| Download URL | scode-0.7.1-py3-none-any.whl |
|---|---|
| Size | 385.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36a05735710f820fe2480e00ce17b52f58c576b7bed00eb4cefd4175d43f5f45
|
|
BLAKE2b-256 checksum How to use checksums |
9c47f63f06202d52ee77ba85f25a9a435ee4f1d4d670a70340f4b409137895ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.1
|
Security for scode 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.