Coder Social home page Coder Social logo

poemdead / python003-003 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from python003-003/python003-003

0.0 0.0 0.0 104.18 MB

Python 96.15% PowerShell 0.03% Shell 0.01% C 1.74% CSS 0.24% JavaScript 0.70% HTML 0.40% XSLT 0.30% Roff 0.05% GAP 0.04% Fortran 0.01% Smarty 0.01% Cython 0.32%

python003-003's Introduction

极客大学「Python进阶训练营-第3期」作业提交仓库

Week1

  1. 使用requestsbs4爬取猫眼电影前十信息,用UTF-8保存到csv文档
  2. 使用ScrapyXpath抓取相同信息。

Week2

  1. Scrapy增加代理ip功能、将数据保存到MySQL、增加异常捕获处理机制
  2. 使用RequestsSelenium模拟登录石墨文档。

Week3

  1. 哲学家就餐算法问题

Week4

  1. 本周主要学习pandas、jieba、SnowNLP
  2. 学会使用SQL和pandas语句的等价转化

Week6

  1. 使用Django展示豆瓣电影中某个电影的短评和评分等信息
  2. MySQL存储短评、Scrapy爬取

Week7

  1. 面向对象编程联系
  2. 定义类、其中一个类不允许实例化
  3. 类属性、属性自动判断、继承、方法(添加实例且不重复)

Week8-9

  1. 区分扁平序列和容器序列、可变序列和不可变序列
  2. 自定义python函数实现类似map()
  3. 使用@timer装饰器记录运行时间

Week10-11

使用 Django 的 Form、Auth 组件,实现用户登录和密码验证功能。

要求:

  • 登录界面要求能够输入用户名、密码,且密码需大于 8 位。
  • 用户名、密码通过 Django 的 Auth 组件对数据库中预先存储的用户密码进行验证。
  • 如果登录失败提示用户密码错误,登录成功后跳转到首页(或其他非登录的页面)。

Week12

项目:简易舆情分析平台

需要抓取“什么值得买”( https://www.smzdm.com/ ) 网站中手机种类前 10 的产品的用户评论,通过对用户评论的正向、负向评价了解排名前 10 的手机产品的用户接受程度。

  • 使用ScrapySelenium爬取信息,实现翻页功能,结果存入MySQL数据库并定时每日更新
  • 使用Pandas数据库进行数据清洗以及语义分析,存储结果入数据库
  • 使用Django集成在线图标实现数据的展示功能,支持筛选

注意事项

如果对 Git 和 GitHub 不太了解,请参考 Git 官方文档 或者极客时间的《玩转 Git 三剑客》视频课程。

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.