Я пытаюсь удалить новостную статью из RSS-канала вместе с такими деталями, как заголовок, описание, URL-адрес и дата. Я не получаю все содержание статьи в столбце описания, как ожидалось. Ниже мой код.
import requests
from bs4 import BeautifulSoup as bs
url='https://www.business-standard.com/rss/economy-policy-102.rss'
resp= requests.get(url)
soup = bs(resp.content,features='xml')
items= soup.findAll('item')
news_items = []
for item in items:
news_item = {}
news_item['title'] = item.title.text
news_item['description'] = item.description.text
news_item['link'] = item.link.text
news_item['pubDate'] = item.pubDate.text
news_items.append(news_item)
import pandas as pd
df = pd.DataFrame(news_items,columns=['title','description','link','pubDate'])
df['description'][0]
Output obtained - 'The re-import in the extended period would be without payment of basic customs duty and integrated goods and services tax'
Как видно выше, я не получаю полное содержание статьи. Какие изменения необходимо внести?