본문 바로가기 메뉴 바로가기

Connecting HW and SW

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Connecting HW and SW

검색하기 폼
  • 분류 전체보기 (3742) N
    • BilientSevices (730)
      • MBI (28)
      • MeasurementSystem[BMS] (79)
      • BilientService (476)
      • DevData (0)
      • BDIY (0)
      • [BSC] ServantClock (1)
      • ImageDecorator (84)
      • BADP:배프 (40)
      • Methodology_Measurement (0)
    • Innovation&Hurdles (294)
      • BusinessPlanning (40)
      • InnovationProcess (132)
      • InnovationCulture (18)
      • Books (102)
    • HWDesk (255)
      • WirelessComm. (1)
      • HardwareControl (70)
      • ElectronicParts (77)
      • Mechanics (74)
    • SWDesk (910)
      • Web (46)
      • Firmware (73)
      • App (79)
      • DMReports (520)
      • ArtificialIntelligence (22)
    • InfoDesk (1521) N
      • Science (49)
      • Tech (932) N
      • Gov.Notice (30)
      • Survey (57)
      • Business (442) N
    • Lifes (26) N
      • Humors (0)
      • Society (14)
      • Hobbies (12) N
    • Closed (0)
  • 방명록

Python (8)
[Python] 하나의 슬라이드에 여러 장의 이미지를 정렬해 넣기

파워포인트를 자동으로 작성하기 위한 파이썬 코드 [Test code] def Test12(): from BPowerpoint import cPowerpoint from pptx import Presentation from pptx.util import Cm prst1 = cPowerpoint() ppt1 = Presentation() pptTitle = "Title for Test12" #ppt1 = Presentation(pptTemplateFile) #ppt1.apply_theme(pptTemplateFile) ppt1.slide_width = Cm(29.7) ppt1.slide_height = Cm(21) pptxName = "./Test12.pptx" layout0 = ppt1.slide_layo..

SWDesk 2023. 9. 17. 11:30
[Python] 시간 차이를 구하는 함수 with datetime

과거 임의의 시점에 기록된 데이터에서 그 데이터의 일시(datetime)가 현재와 어느 정도 시차를 가지고 있는지를 확인하기 위한 파이썬 프로그램 def GetTimeDifference(cls, dateIn): #dateIn : "2020-01-01 12:23:45" date0 = datetime.now() date1 = datetime.strptime(dateIn, "%Y-%m-%d %H:%M:%S") dateD = date0 - date1 daysD = dateD.days secondsD = dateD.seconds timeD = { 'Day': daysD, 'Second': secondsD } #print(dateD.days) return timeD

SWDesk 2023. 8. 26. 20:18
[Python] 날짜 및 시간 함수 : datetime

날짜와 시간 함수를 이용하여 각 항목(년, 월, 일, 시, 분, 초, 요일)에 대한 값을 획득하기 위한 방법 def GetTimeParam(cls, timeIn=None): if not timeIn: timeIn = datetime.now() year1 = timeIn.strftime("%Y") month1 = timeIn.strftime("%m") day1 = timeIn.strftime("%d") hour1 = timeIn.strftime("%H") minute1 = timeIn.strftime("%M") weekDay = timeIn.weekday() rst1 = { 'Year': int(year1), 'Month': int(month1), 'Day': int(day1), 'Hour': int(ho..

SWDesk 2023. 8. 26. 16:14
[Python] Collecting Infos from Webpages

Filename : AETronix22B.py Functions Collect images Set page-no Collect product infos Collect categegory infos [Collect Images] def CollectImages(self, sheetName=None, folderName=None): fileName = "file10.xlsx" folderPath = "./Images" if not os.path.exists(folderPath): os.mkdir(folderPath) if not sheetName: sheetName = "LiFt" if not folderName: folderName = "LightingFittings" folderPathName = fol..

SWDesk 2022. 12. 4. 14:54
[Python] 이메일 전송 프로그램 소스

1. SMTP 로그인 2. 메일 전송 있는 경우, 파일 첨부 mailParam = { 'Subject': "[BRC23C] cReviewCollector_Naver.UpdateOverview() @ " + bTime.GetTimeString(), 'BodyMessage': str(overviewDF2), 'File': fileName } bMailer.SemdMail(mailParam, "mailAccount@gmail.com") class cBMailer: def __init__(self): pass def GetSMTP(sef): thisSMTP = cConstants.thisSMTP thisPort = cConstants.thisPort # Encryption : TLS emailAddress = ..

SWDesk 2021. 3. 7. 17:06
[Python] 카카오 로그인 및 메시지 전송 프로그램 소스

1. 카카오 로그인 2. 카카오 코드 수령 3. 카카오 액세스 토큰 수령 4. (단문)메시지 전송 class cKakaoAPI: EXECUTABLE_PATH = cConstants.PATH_CHROMEDRIVER AccessToken = None Date_AccessToken = None def __init__(self): self.SetAccessToken() def SetAccessToken(self): ret1 = self.CheckAccessCode() if ret1==1: return None # Reference Link : https://developers.kakao.com/docs/latest/ko/kakaologin/rest-api#request-token rESTAPIKey = cCon..

SWDesk 2021. 3. 5. 20:02
[Python] 웹 페이지의 데이터를 크롤링하는 프로그램 소스

1. 특정 검색어에 대해 주요 검색엔진(다음, 네이버, 구글)이 제공하는 웹페이지 정보 페이지 주소(URL) 페이지 제목(Title) 페이지 내용(Contents) 2. 특정 웹 페이지 내 게시글 중 최신 정보 수집 게시글 주소(URL) 게시글 제목(Title) 게시글 내용(Contents) 3. 특정 웹 페이지 내 게시글을 PDF로 저장 4. 크롤링 결과를 엑셀(EXCEL)로 저장 5. 크롤링 결과를 이메일로 전송 요청이 있는 경우, 저장될 파일을 이메일에 첨부 6. 크롤링 결과의 요약문을 카카오톡 메시지로 전송 class cArticleCollector: ChromeAccess = cChromeAccess() def __init__(self): pass def StartCollection(self, ..

SWDesk 2021. 3. 4. 19:51
[Python] 웹 정보 수집하기(1)

from selenium import webdriver from selenium.webdriver.common.keys import Keys import time from bs4 import BeautifulSoup def fGetLinkPage(linkAddress): driver = webdriver.Chrome() driver.get(linkAddress) try: title1 = driver.find_element_by_tag_name('title') print("[title]", title1.text) except : print("[Excepted]-TITLE") try: body1 = driver.find_element_by_tag_name('body') print("[body]", body1..

SWDesk 2020. 12. 26. 09:55
이전 1 다음
이전 다음
반응형
250x250
공지사항
  • How to Use BRA Service
  • BRA서비스 이용 방법
  • Innovations and Hurdles
  • ☆☆ 신규 정보 구독을 신청하세요.
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 빌리언트
  • Decorator
  • 심심풀이치매방지기
  • Video
  • 치매방지
  • 치매
  • ServantClock
  • 전압전류모니터링
  • 티스토리챌린지
  • 오블완
  • bilient
  • 배프
  • 혁신
  • arduino
  • 심심풀이
  • Innovations&Hurdles
  • badp
  • 둎
  • Hurdles
  • 절연형
  • image
  • 아두이노
  • DYOV
  • 전압
  • Innovation&Hurdles
  • BSC
  • 허들
  • 전류
  • Innovations
  • 혁신과허들
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.