Skip to main content

The Private Package of Showm Company.

Project description

scode

PyPI PyPI - Downloads

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) : 텔레그램으로 이미지를 전송하는 함수
    • 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.1.tar.gz (387.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scode-0.7.1-py3-none-any.whl (385.5 kB view details)

Uploaded Python 3

File details

Details for the file scode-0.7.1.tar.gz.

File metadata

  • Download URL: scode-0.7.1.tar.gz
  • Upload date:
  • Size: 387.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.1

File hashes

Hashes for scode-0.7.1.tar.gz
Algorithm Hash digest
SHA256 147bcb4f8474cc2c3ada4f8223557f90a67719b8809c98808a8d42b1ce4072b8
MD5 8d5f876a5e285ed85f7d1a811b314f49
BLAKE2b-256 26b1dca8b3d982a55e89989047dc0bbd10bb823c8fba5aa23188a00f72a74add

See more details on using hashes here.

File details

Details for the file scode-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: scode-0.7.1-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

Hashes for scode-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36a05735710f820fe2480e00ce17b52f58c576b7bed00eb4cefd4175d43f5f45
MD5 1feb753b4febfb70dd5f1751b1b86fce
BLAKE2b-256 9c47f63f06202d52ee77ba85f25a9a435ee4f1d4d670a70340f4b409137895ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page