![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
zou_gr
在路上,在努力,在成长,
展开
-
python语言网络爬虫学习(二)
内容简介这一章节主要写如何将python爬取的内容存储在json文件和mysql数据库。原创 2020-07-10 17:37:28 · 195 阅读 · 0 评论 -
解决(pymysql.err.InternalError) (1049, “Unknown database ‘test‘“)报错问题
将dataframe写进mysql数据库报错这是我的dataframe:通过以下方式进行将我的dataframe写进数据库:from sqlalchemy import create_enginecon = create_engine('mysql+pymysql://root:123@localhost/test?charset=utf8')import pandas as pdpd.DataFrame({'names': names, 'href': href}).to_sql('tem原创 2020-07-10 17:35:14 · 10626 阅读 · 5 评论