|
|
@ -40,7 +40,7 @@ def get_blog():
|
|
|
|
|
|
|
|
|
|
|
|
blog.append({
|
|
|
|
blog.append({
|
|
|
|
'image': image_url,
|
|
|
|
'image': image_url,
|
|
|
|
'game': text_list[0].contents[0].replace(' ', '').lower(),
|
|
|
|
'game': text_list[0].contents[0].replace(' ', '').replace(':', '').lower(),
|
|
|
|
'title': text_list[1].contents[0],
|
|
|
|
'title': text_list[1].contents[0],
|
|
|
|
'description': '',
|
|
|
|
'description': '',
|
|
|
|
'url': base_url+feature_html.attrs['href'],
|
|
|
|
'url': base_url+feature_html.attrs['href'],
|
|
|
@ -56,7 +56,7 @@ def get_blog():
|
|
|
|
|
|
|
|
|
|
|
|
blog.append({
|
|
|
|
blog.append({
|
|
|
|
'image': image_url,
|
|
|
|
'image': image_url,
|
|
|
|
'game': content_html.find(class_='ArticleListItem-subtitle').find(class_='ArticleListItem-labelInner').contents[0].replace(' ', '').lower(),
|
|
|
|
'game': content_html.find(class_='ArticleListItem-subtitle').find(class_='ArticleListItem-labelInner').contents[0].replace(' ', '').replace(':', '').lower(),
|
|
|
|
'title': content_html.find(class_='ArticleListItem-title').contents[0],
|
|
|
|
'title': content_html.find(class_='ArticleListItem-title').contents[0],
|
|
|
|
'description': content_html.find(class_='ArticleListItem-description').find(class_='h6').contents[0],
|
|
|
|
'description': content_html.find(class_='ArticleListItem-description').find(class_='h6').contents[0],
|
|
|
|
'url': base_url+article_html.find(class_='ArticleLink').attrs['href'],
|
|
|
|
'url': base_url+article_html.find(class_='ArticleLink').attrs['href'],
|
|
|
|