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
| import requests | |
| html = requests.get('https://promsoft.ru').text | |
| from bs4 import BeautifulSoup | |
| from bs4.element import NavigableString | |
| def html2txt(html): | |
| soup = BeautifulSoup(html, 'lxml') | |
| for elem in soup.findAll(['script', 'style']): |
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
| a = [] | |
| padd = [0]*9 | |
| source = list(range(7)) | |
| def logic(a): | |
| a = a + padd | |
| if a[0] + a[1] + a[2] > 13: | |
| return False | |
| if a[3] + a[4] + a[5] > 13: | |
| return False | |
| if a[6] + a[7] + a[8] > 13: |
NewerOlder