This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ext_KCD(df_KCD, input_KCD): | |
KCD_1 = input_KCD.replace(' ', '').split(',') | |
KCD_list = [] | |
for KCD in KCD_1: | |
if "-" in KCD: | |
KCD_beg = KCD.split('-')[0].upper() | |
KCD_end = KCD.split('-')[1].upper() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if 'google.colab' in str(get_ipython()): | |
print('Running on CoLab') | |
else: | |
print('Not running on CoLab') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs4, requests | |
import urllib.request | |
import json | |
import console | |
import socket | |
def get_beautiful_soup(url): | |
return bs4.BeautifulSoup(requests.get(url).text, "html5lib") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: var authURL = 'http://first.wifi.olleh.com/starbucks/index_kr.html'; switch (window.location.href) { case authURL: document.getElementById("agreement_agree").checked = true; document.getElementById("purpose_agree").checked = true; goAct(); break; default: window.location.href = authURL; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
print('Number of arguments: ', len(sys.argv), 'arguments.') | |
print('Argument List: ', str(sys.argv)) | |
print(str(sys.argv[1])) | |
print(str(sys.argv[2])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs4, requests | |
import urllib.request | |
import json | |
import console | |
def get_beautiful_soup(url): | |
return bs4.BeautifulSoup(requests.get(url).text, "html5lib") | |
def bad_rooffunding(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs4, requests | |
def get_beautiful_soup(url): | |
return bs4.BeautifulSoup(requests.get(url).text, "html5lib") | |
soup = get_beautiful_soup('https://www.funda.kr/v2/investment') | |
#print(soup.prettify()) | |
pkg_list = soup.find_all("div", "merchandise_inner_box") | |
pkg_details = soup.find_all("div", "merchandise_details") | |
progress = soup.find_all("div", "merchandise_progress_bar") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import requests | |
import bs4 | |
import xml.etree.ElementTree as ET | |
def get_beautiful_soup(url): | |
return bs4.BeautifulSoup(requests.post(url, data=xml, headers=headers).text, "html5lib") | |
def get_date(url): | |
return bs4.BeautifulSoup(requests.get(url).text, "html5lib") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import requests | |
import bs4 | |
import xml.etree | |
import datetime | |
def post_beautiful_soup(url): | |
return bs4.BeautifulSoup(requests.post(url, data=payload).text, "html5lib") | |
def get_beautiful_soup(url): |