Skip to main content

Selenium for Showm Company

Project description

smcode

Installaion (설치)

cmd창을 열어서 하단의 코드를 입력 후 실행.

pip install smcode

Example (사용예시)

from smcode.selenium import * # smcode의 selenium 모듈의 모든 것을 임포트

driver = load_driver()

or

from smcode.selenium import load_driver # smcode의 selenium 모듈의 load_driver만 임포트

driver = load_driver()

or

import smcode.selenium # smcode의 selenium 모듈을 임포트, 이 경우에는 하단처럼 전체 경로를 입력해야 함

driver = smcode.selenium.load_driver()

or

import smcode # 이 경우에는 하단처럼 전체 경로를 입력해야 함

driver = smcode.selenium.load_driver()

시크릿모드

from smcode.selenium import *

driver = load_driver(mode='secret') # 다른 import 방법들도 가능

fast모드

from smcode.selenium import *

driver = load_driver(mode='fast') # 이미지 등을 로딩하지 않아 빠른 속도 지원

병행사용

from smcode.selenium import *

driver = load_driver(mode='secret' and 'fast')

옵션 부여

from smcode.selenium import *

options = Options()
options.add_argument(f'--headless')
driver = load_driver(chrome_options=options) # mode와 병행 사용 가능

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smcode-0.0.4.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

smcode-0.0.4-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

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