import requests
from bs4 import BeautifulSoup

session = requests.Session()
session.trust_env = False
session.verify = False

receive = session.get(url='http://www.google.com')
html = receive.text

bsObj = BeautifulSoup(html, 'html.parser')

for div in bsObj.find_all('div'):
     print(div.get('id'))

'Python' 카테고리의 다른 글

Getting snmp informations with python script  (0) 2020.04.22
USING THREAD IN PYTHON  (0) 2020.04.07
TRY TO CONNECT VIA SMB OR CIFS  (0) 2020.04.07
TRY TO CONNECT VIA MYSQL  (0) 2020.04.07
TRY TO TEST FOR DEFAULT ACCOUNT VIA TELNET  (0) 2020.04.07

+ Recent posts