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
from bs4 import BeautifulSoup | |
import requests | |
root = 'https://subslikescript.com' | |
website = f'{root}/movies' | |
result = requests.get(website) | |
content = result.text | |
soup = BeautifulSoup(content, 'lxml') | |
box = soup.find('article', class_='main-article') |
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
<article class ="main-article"> | |
<h1> Титаник(1997) </h1> | |
<p class ="plot" > 84 года спустя... </p> | |
<div class ="full-script"> | |
"13 метров. Можешь сам посмотреть. " | |
<br> | |
"Хорошо, поднимите её и перекиньте через носовой поручень. " | |
<br> | |
... | |
</div> |
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
# Django settings for myproject project. | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( | |
# ('Your Name', '[email protected]'), | |
) | |
MANAGERS = ADMINS |
NewerOlder