GithubHelp home page GithubHelp logo

-'s Introduction

-

具体README文件见同名docx文件 电影数据分析系统

一:py文件功能介绍:

1.Scrapy58921.py:

从58921.com电影网站上爬取2015年至2018年数据并按照规定格式存储到MySQL指定数据库中

2.labvisual.py :

在数据爬取并存储完毕后,可以对存储在数据库中的电影数据进行排序以及可视化处理,pyecharts可视化自动生成的html分别为:
1516_month_boxoffice.html
1718_month_boxoffice.html 根据用户输入内容,自动生成的html分别为: (用户输入)年top(用户输入)词云.html top(用户输入)电影题材.html top(用户输入)劳模演员.html

通过phantomjs将生成的html文件转为png格式保存在同一文件路径下

通过pdfkit以及wkhtmltopdf工具将html文件转为pdf格式保存在同一文件路径下

3.movies_gui文件: 使用tkinter工具生成了一个可以账号密码登陆的图形界面

二:数据库注意事项

1.连接数据库具体方法: 在各py文件中 将代码db = pymysql.connect(host='localhost', port=3306, user='', passwd='', db='movies_database', charset="utf8") *****处添加自己MySQL的账号以及密码 并手动建立名为movies_database的数据库

2.数据库中movies_table表形式按照特定方式构造

三:报表相关工具

用户需要自行下载安装phantomjs以及wkhtmltopdf工具

并且将bin文件的路径添加到计算机的环境变量中 phantomjs用于将html文件转为png文件 wkhtmltopdf用于将html文件转为pdf文件

-'s People

Contributors

sunmingchen avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.