본문 바로가기

전체 글

(1837)
[Selenium]Python Study - PPT Presentation Material - 1 • 웹 앱을 테스트하는데 이용하는 프레임워크 • webdriver라는 API를 통해 운영체제에 설치된 Chrome등의 브라우저를 제어 • 참고 : https://sites.google.com/a/chromium.org/chromedriver/downloads Downloads - ChromeDriver - WebDriver for Chrome WebDriver for Chrome sites.google.com • 참고 : https://www.seleniumhq.org SeleniumHQ Browser Automation If you want to create robust, browser-based regression automation suites and tests, scale and distribut..
[Crawling]Python Study - PPT Presentation Material - 4 • 기본 구조(3.16.html / 3.17.html) • #아이디 이름 정의 • id=아이디 이름 • 특정한 id 속성을 가지고 있는 태그 • 참고 : https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors ID selectors The CSS ID selector matches an element based on the value of its id attribute. In order for the element to be selected, its ID attribute must match exactly the value given in the selector. developer.mozilla.org • 기본 구조(3.18.html) • 참고 : ..
[Crawling]Python Study - PPT Presentation Material - 3 • 기본 구조(3.4.html) • 순서 없는 목록 태그 • 기본 목록을 생성할 때 사용 • 웹페이지의 네비게이션 메뉴를 생성할 때에 사용 • 참고 : https://devdocs.io/html/element/ul DevDocs devdocs.io • 참고 : https://devdocs.io/html/element/li DevDocs devdocs.io • 기본 구조(3.5.html) • 표를 생성할 때 사용 • tr : 표 내부의 행 태그 • th : 행 내부의 제목 셀 태그 / 굵은글씨 / 머리말 • td : 행 내부의 일반 셀 태그 • table 태그에 들어가는 태그 : tr, td, th, col, colgroup,row, caption, tbody, tfoot, thead, summary • ..
[Crawling]Python Study - PPT Presentation Material - 2 • 참고 : https://javaplant.tistory.com/18 HTTP 응답코드 메소드 정리 GET, POST, PUT, PATCH, DELETE, TRACE, OPTIONS HTTP Request 정보 GET /index.html HTTP/1.1 요청 URL정보 (Mehotd /URI HTTP버젼) user-agent: MSIE 6.0; Window NT 5.0 사용자 웹 브라우져 종류 accept: test/html; */* 요청 데이터 타입 (응답의 Content-ty.. javaplant.tistory.com • GET • Body 없이 Header만 전송 • 링크 / 북마크 가능 • 요청 길이 제한 존재 • 쿼리 문자열 가능 • 쿼리 문자열은 key와 value로 구분 • 쿼리는 & 로..
[Crawling]Python Study - PPT Presentation Material - 1 • Python : https://www.python.org Welcome to Python.org The official home of the Python Programming Language www.python.org • Python Tutorial : https://docs.python.org/ko/3/tutorial/index.html 파이썬 자습서 — Python 3.8.1rc1 문서 파이썬 자습서 파이썬은 배우기 쉽고, 강력한 프로그래밍 언어입니다. 효율적인 자료 구조들과 객체 지향 프로그래밍에 대해 간단하고도 효과적인 접근법을 제공합니다. 우아한 문법과 동적 타이핑(typing)은, 인터프리터 적인 특징들과 더불어, 대부분 플랫폼과 다양한 문제 영역에서 스크립트 작성과 빠른 응용 프로그램 개..
[API]KAKAO API 발급 방법(카카오 API) 1. 카카오API Site }https://developers.kakao.com/ Kakao Developers_ 더 나은 세상을 꿈꾸고 그것을 현실로 만드는 이를 위하여 카카오에서 앱 개발 플랫폼 서비스를 시작합니다. developers.kakao.com 2. 발급 방법 - 앱 개발 시작하기 - 앱 만들기 - 앱 이름 / 회사명 지정(공부를 위해서 하는거므로 아무거나 입력해도 상관 없음) - 계속 진행(추후 아이콘은 실제 개발시 활용 할수 있으나 지금은 그냥 아이콘없이 해도 무관) - 각 API 키 값 따로 메모 3. 발급 API 확인 방법 - 설정 > 일반 > 앱 키
[Django]User > Views from django.shortcuts import render, redirect from django.core.paginator import Paginator from django.http import Http404 from fcuser.models import Fcuser from tag.models import Tag from .models import Board from .forms import BoardForm # Create your views here. def board_detail(request, pk): try: board = Board.objects.get(pk=pk) except Board.DoesNotExist: raise Http404('게시글을 찾을 수 없습니다.') return..
[Django]User > Forms from django import forms class BoardForm(forms.Form): title = forms.CharField(error_messages={ 'required': '제목을 입력해주세요.' }, max_length=128, label="제목") contents = forms.CharField(error_messages={ 'required': '내용을 입력해주세요.' }, widget=forms.Textarea, label="내용") tags = forms.CharField(required=False, label="태그")