I'm new to python.

I am making a program to send a list of Yahoo news rankings to LINE. But it doesn't work.

What's wrong?

import requests
from bs4 import BeautifulSoup

html = requests.get (load_url)
soup = BeautifulSoup (html.content, "html.parser")

line_notify_token ='×××'
line_notify_api ='〇〇〇'

topic = soup.find (class_="newsFeed")
for element in topic.find_all (class_=" newsFeed_item_title"):
message ='element.text'

payload = {'message': message}
headers = {'Authorization':'Bearer' + line_notify_token}
line_notify = requests.post (line_notify_api, data = payload, headers = headers)