@@ -48,11 +48,12 @@ class Letterboxd(Automation):
|
|||||||
|
|
||||||
soup = BeautifulSoup(self.getHTMLData(self.url % username))
|
soup = BeautifulSoup(self.getHTMLData(self.url % username))
|
||||||
|
|
||||||
for movie in soup.find_all('a', attrs = {'class': 'frame'}):
|
for movie in soup.find_all('li', attrs = {'class': 'poster-container'}):
|
||||||
match = removeEmpty(self.pattern.split(movie['title']))
|
img = movie.find('img', movie)
|
||||||
|
title = img.get('alt')
|
||||||
|
|
||||||
movies.append({
|
movies.append({
|
||||||
'title': match[0],
|
'title': title
|
||||||
'year': match[1]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return movies
|
return movies
|
||||||
|
|||||||
Reference in New Issue
Block a user