摘要: 安装scrapy时,报错:ERROR: Twisted-20.3.0-cp38-cp38m-win_amd64.whl is not a supported wheel on this platform. 解决办法: 1、打开链接 https://www.lfd.uci.edu/~gohlke/py 阅读全文
posted @ 2020-08-25 10:19 lingyishan2020 阅读(4426) 评论(0) 推荐(1)
摘要: 1 import time 2 import pymongo 3 import requests 4 5 client = pymongo.MongoClient('localhost',27017) 6 #在MongoDB中新建名为weather的数据库 7 book_weather = clie 阅读全文
posted @ 2020-08-18 16:43 lingyishan2020 阅读(207) 评论(0) 推荐(0)
摘要: 1 import time 2 # import pymongo 3 import requests 4 5 url='https://cdn.heweather.com/china-city-list.txt' 6 strhtml=requests.get(url) 7 # strhtml.enc 阅读全文
posted @ 2020-08-17 13:56 lingyishan2020 阅读(176) 评论(0) 推荐(0)
摘要: 1 import time 2 import pymongo 3 import requests 4 5 client = pymongo.MongoClient('localhost',27017) 6 #在MongoDB中新建名为weather的数据库 7 book_weather = clie 阅读全文
posted @ 2020-08-17 13:45 lingyishan2020 阅读(255) 评论(0) 推荐(0)
摘要: 1.以管理员身份打开cmd, 2.到mongodb的bin目录下: cd/cd/goodstudy200731\mongo\bin3.分别执行以下两步: 先执行 mongod --config "C:\goodstudy200731\mongo\bin\mongo.config" -install 阅读全文
posted @ 2020-08-14 07:25 lingyishan2020 阅读(1681) 评论(0) 推荐(0)
摘要: 学习笔记。。。。安装好库后,在pycharm中输入代码:import requestsimport json# 使用有道翻译def get_translate_date(word=None): # 错误 url = 'http://fanyi.youdao.com/translate_o?smart 阅读全文
posted @ 2020-08-11 12:20 lingyishan2020 阅读(366) 评论(0) 推荐(0)