I am running intoan issue with the below. It says
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT\xc2\xa0INTO\xc2\xa0no.top_new VALUES\xc2\xa0(title,\xc2\xa0link,\xc2\xa0description)' at line 1")
I am not sure what is wrong with the query?
import feedparser, MySQLdb
db = MySQLdb.connect(host='localhost',user='root',passwd='sdsdf', db='no')
mycursor = db.cursor()
d = feedparser.parse('https://news.yahoo.com/rss/entertainment')
for post in d.entries:
title = post.title
link = post.link
description = post.description
sql = '''INSERT INTO no.top_new VALUES (title, link, description)'''
mycursor.execute(sql)
nbsp;characaters instead of spaces