파이썬 불법사이트 탐지 및 차단
- 최초 등록일
- 2023.01.27
- 최종 저작일
- 2022.06
- 6페이지/ MS 워드
- 가격 2,500원
소개글
"파이썬 불법사이트 탐지 및 차단"에 대한 내용입니다.
목차
없음
본문내용
# -*- coding: utf-8 -*-
# -*- coding: euc-kr -*-
import pandas as pd
import numpy as np
from urllib.request import Request, urlopen
import requests
import tkinter.messagebox as msgbox
from tkinter import *
from urllib.parse import quote_plus
from bs4 import BeautifulSoup
from selenium import webdriver
import sys
import os
import win32com.shell.shell as shell
import re
#get admin
if sys.argv[-1] != 'asadmin':
script = os.path.abspath(sys.argv[0])
params = ' '.join([script] + sys.argv[1:] + ['asadmin'])
shell.ShellExecuteEx(lpVerb='runas', lpFile=sys.executable, lpParameters=params)
sys.exit(0)
#root window
tk = Tk()
tk.geometry('600x440')
tk.title("team_M.D")
#widget-event
def for_listbox():
global list_b
list_b = []
f = open('C:/Windows/System32/drivers/etc/hosts','r')
line = f.readline()
listbox.delete(0,END)
while line:
if (line.startswith('127.0.0.1 ')):
l_text = (line.split('127.0.0.1 ')[1])
참고 자료
없음