- 파이썬3 에서 동작합니다.
- requests, beautifulsoup4 라이브러리가 필요합니다.
pip install requests beautifulsoup4
| "use strict"; | |
| var input = '13자리의 주민번호 - 없이'; | |
| var mul = [2,3,4,5,6,7,8,9,2,3,4,5]; | |
| var sum = 0; | |
| for(var i =0; i < mul.length; i++) { | |
| var digit = parseInt(input[i]); | |
| sum += digit * mul[i]; | |
| } |
| #!/bin/sh | |
| if [ $# -eq 1 ] | |
| then | |
| if [ "$1" = "spoof" ] | |
| then | |
| sudo ifconfig en0 ether # Your iPhone MAC Adress | |
| echo "spoof to iphone MAC address" | |
| elif [ "$1" = "origin" ] | |
| then |
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| import mechanize | |
| import time | |
| import os | |
| import sys | |
| from random import choice | |
| import logging |
| @pytest.yield_fixture(scope='function', autouse=True) | |
| def newline_before_logging(request): | |
| if request.config.getoption('capture') == 'no': | |
| print # new-line | |
| yield |
| import requests | |
| from bs4 import BeautifulSoup | |
| # No.1 | |
| class CrawlerWithReturn(object): | |
| def __init__(self, url): | |
| self.url = url | |
| def get_page(self): | |
| return requests.get(self.url) |
| # -*- coding: utf-8 -*- | |
| __author__ = 'pr0ximo' | |
| # 필독! | |
| # 본 자료는 파이썬 교육을 위해 코드 활용의 목적을 위해서만 제작된 코드이며, 불법적인 용도로 사용될수 없습니다. | |
| # 또한 본 코드의 불법적인 사용으로 인한 모든 법적또는 신체적/정신적 책임은 본 코드 제작자가 일절 책임지지 않습니다. | |
| # 본자료는 로그인이 필요한 유료/무료 웹툰을 가져올수 없습니다. | |
| # 또한 그걸 제공 해서 배포할 생각도 없습니다. ㅎ |
| #!/usr/bin/env python3 | |
| from urllib.parse import quote, unquote | |
| str1 = '인코딩 제발ㅠㅠ' | |
| str1.encode('euc-kr') | |
| # b'\xc0\xce\xc4\xda\xb5\xf9 \xc1\xa6\xb9\xdf\xa4\xd0\xa4\xd0' | |
| str_euckr = quote(str1.encode('euc-kr')) | |
| str_euckr | |
| # '%C0%CE%C4%DA%B5%F9%20%C1%A6%B9%DF%A4%D0%A4%D0' |