07 2021 档案

摘要:从B站学习了一段时间,使用urllib方式爬取豆瓣电影Top250保存到excel 话不多说贴上代码,亲测可用 补充保存到爬取数据到数据库中 # -*- coding: utf-8 -*-# @Time : 2021/7/17 21:49# @Author :liuw# @File : get_do 阅读全文
posted @ 2021-07-24 17:19 smartwen 阅读(216) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*-# @Time : 2021/7/18 11:40# @Author :liuw# @File : testUrllib.py# @Software: PyCharmimport urllib.requestimport urllib.parse# 获取 阅读全文
posted @ 2021-07-18 20:36 smartwen 阅读(91) 评论(0) 推荐(0)
摘要:写这个作业碰到一个问题,就是开始写入文件时,文件流没有关闭,导致后来read一直为null,特此记录 # -*- coding: utf-8 -*-# @Time : 2021/7/17 15:47# @Author :liuw# @File : try_catch_file.py# @Softwa 阅读全文
posted @ 2021-07-17 20:38 smartwen 阅读(4563) 评论(0) 推荐(0)