-
garvey说:
请利用python 爬取豆瓣网top250的电影信息,并给出完整的源代码
#coding=utf-8 import requests import re import json import time # 豆瓣top250首页 url = 'https://movie.douban.com/top250' # 用于存储爬取信息 info_list = [] # 请求头,伪装浏览器 headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36' } for x in range(10): link = url + '/?start=' + str(x*25) # 发送请求 response = requests.get(link, headers=headers) # 获取源码 html = response.text # 正则表达式解析电影信息 pattern = re.compile('.*?(.*?).*?' # 电影排名 + '.*?.*?' # 电影链接、电影名 + '.*?(.*?).*?' # 电影简介 + '.*?(.*?) (.*?)/.*?.*?', re.S) # 上映时间、电影评分 result = re.findall(pattern, html) # 存储爬取的数据 for item in result: info_list.append({ '排名': item[0], '链接': item[1], '电影名': item[2], '简介': item[3].strip(), '上映时间': item[4].strip(), '评分': item[5].strip() }) # 控制爬取频率 time.sleep(1) # 将爬取的电影信息存储为JSON格式 with open('豆瓣top250.json', 'w', encoding='utf-8') as fp: json.dump(info_list, fp, ensure_ascii=False) print('爬取完成!')
-
garvey说:
为vscode 生成latex可用的所有snippets
§§ 1000
+# 为 VSCode 生成 Latex 可用的所有 Snippets
§§ --- README.md
-- 全部替换为大写
§§ 1002
+- 全部替换为大写,例如\alpha
被替换为\Alpha
+
§§ --- README.md
§§ 1004
+
§§ --- README.md
§§ 1005
+
§§ --- README.md
§§ 1006
+
§§ --- README.md
§§ 1007
+
§§ --- README.md
§§ 1008
+
§§ --- README.md
§§ 1009
+
§§ --- README.md
§§ 1010
+
§§ --- README.md
§§ 1011
+
§§ --- README.md
§§ 1012
+
§§ --- README.md
§§ 1013
+
§§ --- README.md
§§ 1014
+
§§ --- README.md
§§ 1015
+
§§ --- README.md
§§ 1016
+
§§ --- README.md
§§ 1017
+
§§ --- README.md
§§ 1018
+
§§ --- README.md
§§ 1019
+
§§ --- README.md
§§ 1020
+
§§ --- README.md
§§ 1021
+
§§ --- README.md
§§ 1022
+
§§ --- README.md
§§ 1023
+
§§ --- README.md
§§ 1024
+
§§ --- README.md
§§ 1025
+
§§ --- README.md
§§ 1026
+
§§ --- README.md
§§ 1027
+
§§ --- README.md
§§ 1028
+
§§ --- README.md
§§ 1029
+
§§ --- README.md
§§ 1030
+
§§ --- README.md
§§ 1031
+
§§ --- README.md
§§ 1032
+
§§ --- README.md
§§ 1033
+
§§ --- README.md
§§ 1034
+
§§ --- README.md
§§ 1035
+
§§ --- README.md
§§ 1036
+
§§ --- README.md
§§ 1037
+
§§ --- README.md
§§ 1038
+
§§ --- README.md
§§ 1039
+
§§ --- README.md
§§ 1040
+
§§ --- README.md
§§ 1041
+
§§ --- README.md
§§ 1042
+
§§ --- README.md
§§ 1043
+
§§ --- README.md
§§ 1044
+
§§ --- README.md
§§ 1045
+
§§ --- README.md
§§ 1046
+
§§ --- README.md
§§ 1047
+
§§ --- README.md
§§ 1048
+
§§ --- README.md
§§ 1049
+
§§ --- README.md
§§ 1050
+
§§ --- README.md
§§ 1051
+
§§ --- README.md
§§ 1052
+
§§ --- README.md
§§ 1053
+
§§ --- README.md
§§ 1054
+
§§ --- README.md
§§ 1055
+
§§ --- README.md
§§ 1056
+
§§ --- README.md
§§ 1057
+
§§ --- README.md
§§ 1058
+
§§ --- README.md
§§ 1059
+
§§ --- README.md
§§ 1060
+
§§ --- README.md
§§ 1061
+
§§ --- README.md
§§ 1062
+
§§ --- README.md
§§ 1063
+
§§ --- README.md
§§ 1064
+
§§ --- README.md
§§ 1065
+
§§ --- README.md
§§ 1066
+
§§ --- README.md
§§ 1067
+
§§ --- README.md
§§ 1068
+
§§ --- README.md
§§ 1069
+
§§ --- README.md
§§ 1070
+
§§ --- README.md
§§ 1071
+
§§ --- README.md
§§ 1072
+
§§ --- README.md
§§ 1073
+
§§ --- README.md
§§ 1074
+
§§ --- README.md
§§ 1075
+
§§ --- README.md
§§ 1076
+
§§ --- README.md
§§ 1077
+
§§ --- README.md§§ 1079
-
690779301gagacui说:
生物质是什么,与电池有什么产业交汇?济南圣泉集团股份有限公司旗下生物质项目主要有哪些产业?
生物质是植物、动物或其他微生物的组织结构或代谢产物,在生物领域有着广泛的应用。与电池产业有关的主要是可再生能源领域,利用生物质可以制备可再生能源,可以替代传统的石油、煤炭等化石能源,从而有效地减少污染。
济南圣泉集团股份有限公司旗下生物质项目主要有:生物质发电、生物质燃料、生物质气化,以及生物质化学品等产业。