mirror of
https://github.com/KUlishevgeniy/c22712.git
synced 2026-09-23 23:50:21 +00:00
Merge branch 'master' of github.com:KUlishevgeniy/c22712
This commit is contained in:
@@ -1,4 +1,16 @@
|
||||
print('Hello, world!')
|
||||
'''
|
||||
Пу пу пу
|
||||
'''
|
||||
from bs4 import BeautifulSoup
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.chrome.service import Service
|
||||
import time
|
||||
|
||||
S = Service('D:\teach\Prog\chromedriver.exe') #Открыли драйвер для хрома
|
||||
browser = webdriver.Chrome(service=S) #Инициировали в отдельную переменную
|
||||
browser.get('https://www.kinopoisk.ru/lists/movies/top250/')
|
||||
html_text = browser.page_source
|
||||
time.sleep(20)
|
||||
soup = BeautifulSoup(html_text, 'lxml')
|
||||
films = soup.find_all('div', class_='base-movie-main-info_mainInfo__ZL_u3')
|
||||
print(soup)
|
||||
print(films)
|
||||
for film in films:
|
||||
print(film.text)
|
||||
@@ -0,0 +1 @@
|
||||
Тестовый файл
|
||||
@@ -0,0 +1 @@
|
||||
Тест
|
||||
@@ -0,0 +1 @@
|
||||
Hello World!
|
||||
@@ -0,0 +1 @@
|
||||
print('Hello, World!')
|
||||
@@ -0,0 +1 @@
|
||||
test
|
||||
@@ -0,0 +1 @@
|
||||
print("Hello, world!")
|
||||
@@ -0,0 +1 @@
|
||||
test
|
||||
@@ -0,0 +1 @@
|
||||
hello world
|
||||
@@ -0,0 +1 @@
|
||||
eijdieid
|
||||
@@ -0,0 +1 @@
|
||||
ghg
|
||||
@@ -0,0 +1 @@
|
||||
hello!!
|
||||
@@ -1 +1 @@
|
||||
7y08y bp89u98 bpuih
|
||||
def print_hi(' hello')
|
||||
Reference in New Issue
Block a user