Removed lxml parser

This commit is contained in:
UrloMythus
2024-07-07 14:24:19 +02:00 Unverified
parent d192dc2e23
commit 9fd52f4aa2
2 changed files with 3 additions and 3 deletions
Binary file not shown.
+3 -3
View File
@@ -77,7 +77,7 @@ def get_mamma(tmbda,ismovie):
return showname,date
def search(query,date):
response = requests.get(query, headers=headers)
soup = BeautifulSoup(response.text, 'html.parser')
test= soup.find('div', class_='elementor-posts-container elementor-posts elementor-posts--skin-classic elementor-grid')
# Find all articles
@@ -131,11 +131,11 @@ def get_film(url):
def get_real_link(tlink):
page = requests.get(tlink, headers=headers)
soup = BeautifulSoup(page.content, features="lxml")
soup = BeautifulSoup(page.content, features="html.parser")
iframe_src = soup.find('iframe')['src']
iframe_page = requests.get(iframe_src, headers=headers)
iframe_soup = BeautifulSoup(iframe_page.content, features="lxml")
iframe_soup = BeautifulSoup(iframe_page.content, features="html.parser")
mega_button = iframe_soup.find('div', attrs={'class': 'megaButton', 'rel': 'nofollow'}, string='MIXDROP')
if mega_button: