kimjoonhyuk224730
@kimjoonhyuk224730
Reviews Written
1
Average Rating
5.0
Posts
Q&A
๋ฆฌ์คํฐ ๊ฒฐ๊ณผ๊ฐ ์ 2์ค๋ง ๋์ฌ๊น์??
๋ต๋ณ ๋ถํ๋๋ฆฝ๋๋ค. ๋ณ์ ํ ๋ฌ ํ๋ค๊ณ ์์ดํดํ์ง์ ๋ง๊ณ ๋ต๋ณ๋ฌ์์ฃผ์ธ์. ํ๋ถ์ ์ด์ฐจํผ ์๋ ๊ฒ ๊ฐ๊ณ ์์๋๋์ง ๊ถ๊ธํฉ๋๋ค~
- 0
- 4
- 451
Q&A
๋ฆฌ์คํฐ ๊ฒฐ๊ณผ๊ฐ ์ 2์ค๋ง ๋์ฌ๊น์??
(์ฌ์ง) https://www.ppomppu.co.kr/zboard/zboard.php?id=ppomppu ์ฐจ๋จ๋จน์ธ๊ฒ์ ์์๊ฑด ์๋๋ฐ ๋ฆฌ์คํฐ๋ 200์ผ๋ก ์๋ฐ๋๋ค๊ณ ํ๋๋ฐ ์ ์คํธ๋ ์๋ ๊น์.. ๋๋ต์ขํด์ฃผ์ผ~ from bs4 import BeautifulSoup import requests import telegram # from hotdeal.models import Deal from selenium import webdriver from datetime import datetime, timedelta # options = webdriver.ChromeOptions() # options.headless = True # browser = webdriver.Chrome(options=options) browser = webdriver.Chrome() browser.get('http://www.ppomppu.co.kr/zboard/zboard.php?id=ppomppu') html=browser.page_source soup=BeautifulSoup(html,'xml') # BOT_TOKEN = "5467952826:AAF30-fcPgBsCQSYnl78EDSguYVXrwAWsAg" # bot = telegram.Bot(token=BOT_TOKEN) from selenium.webdriver.common.by import By for item in soup.find_all("tr", {'class': ["list1", "list0"]}): try: up_count = item.find_all("td")[6].text # ์ฌ๊ธฐ๊น์ง up_count = up_count.split("-")[0] up_count = int(up_count) title = item.find("font", class_="list_title").text title = title.strip() link = item.find("font", class_="list_title").parent.get("href") link = "http://www.ppomppu.co.kr/zboard/" + link if up_count >= 5: print(up_count) print(title) print(link) except : continue ์ ๋ ๋์์ผ๋ก ํ๊ธดํ๋๋ฐ ์ด๋๋ ๋๋ ๋ชจ๋ฅด๊ฒ ๋ค์
- 0
- 4
- 451
Q&A
๋ฆฌ์คํฐ ๊ฒฐ๊ณผ๊ฐ ์ 2์ค๋ง ๋์ฌ๊น์??
header = { 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36", 'Referer': 'https://www.ppomppu.co.kr/', 'Sec-Fetch-Dest' : 'document', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-Site': 'same-origin' } response = requests.get( "http://www.ppomppu.co.kr/zboard/zboard.php?id=ppomppu", headers=header) #ํด๋ ์ถ๊ฐํ๋๋จ.
- 0
- 4
- 451
Q&A
๋ฐ์๋ฒํด๋ ์๋๋๋ฐ ์๊ทธ๋ด๊น์
์ธํ ์์ ํซ๋์ ๋ ฅํ๊ณ ํ๋ฒ ์คํํด์ฃผ๊ณ ์นํด๋๊ฐ์ ๋ฐ์๋ฒ ์คํํ๋ ๋๋ค์
- 0
- 1
- 280
Q&A
๋ฆฌ์คํฐ ๊ฒฐ๊ณผ๊ฐ ์ 2์ค๋ง ๋์ฌ๊น์??
ํฌ๋กค๋ง์ด ๋งํ๊ฑธ๊น์??
- 0
- 4
- 451
Q&A
span.imax
์ ๋ ์ ๋ ๋์์ผ๋ก ์์ดํ๋ ์ ๋ณ๊ฒฝํ๋๊ฒ์ผ๋ก ํ์ด์ from selenium import webdriver browser.get('http://www.cgv.co.kr/theaters/?areacode=01&theaterCode=0013&date=20220530') browser.switch_to.frame('ifrm_movie_time_table') html=browser.page_source soup=BeautifulSoup(html,'xml') imax=soup.select_one('span.imax')
- -1
- 1
- 646




