- 파이썬3 에서 동작합니다.
- requests, beautifulsoup4 라이브러리가 필요합니다.
pip install requests beautifulsoup4
import os | |
import docx | |
from docx.document import Document | |
from docx.oxml.table import CT_Tbl | |
from docx.oxml.text.paragraph import CT_P | |
from docx.table import _Cell, Table | |
from docx.text.paragraph import Paragraph | |
os.chdir('C:\\OJT_Kevin\\161027_docx_parsing') |
from selenium import webdriver | |
driver = webdriver.Firefox() | |
driver.get('https://www.facebook.com/') | |
with open('jquery-1.9.1.min.js', 'r') as jquery_js: | |
jquery = jquery_js.read() #read the jquery from a file | |
driver.execute_script(jquery) #active the jquery lib | |
driver.execute_script("$('#email').text('anhld')") |
# Sort a list of dictionary objects by a key - case sensitive | |
from operator import itemgetter | |
mylist = sorted(mylist, key=itemgetter('name')) | |
# Sort a list of dictionary objects by a key - case insensitive | |
mylist = sorted(mylist, key=lambda k: k['name'].lower()) |
"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 |
# -*- coding: utf-8 -*- | |
__author__ = 'pr0ximo' | |
# 필독! | |
# 본 자료는 파이썬 교육을 위해 코드 활용의 목적을 위해서만 제작된 코드이며, 불법적인 용도로 사용될수 없습니다. | |
# 또한 본 코드의 불법적인 사용으로 인한 모든 법적또는 신체적/정신적 책임은 본 코드 제작자가 일절 책임지지 않습니다. | |
# 본자료는 로그인이 필요한 유료/무료 웹툰을 가져올수 없습니다. | |
# 또한 그걸 제공 해서 배포할 생각도 없습니다. ㅎ |
Remove osxfuse if installed via homebrew: | |
> brew uninstall osxfuse | |
Install osxfuse binary and choose to install the MacFUSE compatibility layer: | |
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files | |
Reboot (optional but recommended by osxfuse) | |
Install ntfs-3g via homebrew: | |
> brew update && brew install ntfs-3g |