skip to Main Content

Writing to sql database with pandas – Mysql

Confused. Trying to build a scraper of UK news in python. import feedparser import pandas as pd def poll_rss(rss_url): feed = feedparser.parse(rss_url) for entry in feed.entries: print("Title:", entry.title) print("Description:", entry.description) print("n") def poll_rss(rss_url): feed = feedparser.parse(rss_url) for entry in feed.entries:…

VIEW QUESTION

got multiple values for argument 'schema' – Postgresql

self.engine=create_engine("postgresql://postgres:12345@localhost/postgres") self.con = self.engine.connect() self.conn.autocommit = True self.cursor = self.conn.cursor() df.to_sql(symbol, schema='xxx', con=self.con, if_exists='append', index=False) df.to_sql(symbol, con=self.con, if_exists='append', index=False) I am getting this error in both cases while adding the dataframe to the postgre sql database meta = MetaData(self.connectable, schema=schema)…

VIEW QUESTION
Back To Top
Search