Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chengyang Zhong
crawler
Commits
044201c0
Commit
044201c0
authored
Jul 29, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 新增热点帖子抽取存库脚本
parent
699ae037
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
12 deletions
+42
-12
cal_ni_and_put_to_backend.py
crawler_sys/scheduler/cal_ni_and_put_to_backend.py
+39
-11
test_read_config.py
test/test_read_config.py
+3
-1
No files found.
crawler_sys/scheduler/cal_ni_and_put_to_backend.py
View file @
044201c0
...
...
@@ -247,14 +247,18 @@ def push_data_to_user(res_data: Dict) -> Dict:
:return:
"""
qiniu_img_list
=
[]
content
=
""
if
res_data
[
"img_list"
]:
for
img_url
in
res_data
[
"img_list"
]:
try
:
img_wb
=
retry_get_url
(
img_url
)
.
content
res
=
upload
(
img_wb
)
print
(
res
)
img_info
=
retry_get_url
(
res
+
"-imageinfo"
)
img_info_json
=
img_info
.
json
()
qiniu_img_list
.
append
((
res
,
img_info_json
))
qiniu_img_list
.
append
((
res
+
"-w"
,
img_info_json
))
except
:
return
{}
# 替换图片
if
res_data
[
"platform"
]
==
"weibo"
:
...
...
@@ -263,8 +267,10 @@ def push_data_to_user(res_data: Dict) -> Dict:
content
=
res_data
.
get
(
"content"
)
if
content
:
for
count
,
img_url
in
enumerate
(
res_data
[
"img_list"
]):
content
.
replace
(
img_url
,
qiniu_img_list
[
count
][
0
])
# print(qiniu_img_list[count][0])
content
=
content
.
replace
(
img_url
,
qiniu_img_list
[
count
][
0
])
res_data
[
"qiniu_img_list"
]
=
qiniu_img_list
res_data
[
"content"
]
=
content
if
res_data
[
"platform"
]
==
"weibo"
:
res_data
[
"content"
]
=
gm_convert_html_tags
(
res_data
[
"title"
],
all_tags
=
True
)
res_data
[
"title"
]
=
""
...
...
@@ -297,7 +303,7 @@ img_type = {
def
write_data_into_mysql
(
res_data
):
now_str
=
datetime
.
datetime
.
now
()
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)
data
=
push_data_to_user
(
res_data
)
if
data
.
get
(
"title"
)
:
try
:
sql_query
=
"""insert into api_tractate
(user_id,content,is_online,status,platform,content_level,is_excellent,create_time,last_modified,user_del,low_quality,low_quality_deal,platform_id,pgc_type,title)
values ({user_id},'{content}',{is_online},{status},{platform},{content_level},{is_excellent},'{create_time}','{last_modified}',{user_del},{low_quality},{low_quality_deal},'{platform_id}',{pgc_type},'{title}');"""
.
format
(
...
...
@@ -306,8 +312,6 @@ def write_data_into_mysql(res_data):
is_excellent
=
0
,
create_time
=
now_str
,
last_modified
=
now_str
,
user_del
=
0
,
low_quality
=
0
,
low_quality_deal
=
0
,
platform_id
=
data
[
"doc_id"
],
pgc_type
=
1
,
title
=
data
[
"title"
])
try
:
res
=
cur
.
execute
(
sql_query
)
tractate_id
=
int
(
conn
.
insert_id
())
if
res
:
...
...
@@ -322,15 +326,38 @@ def write_data_into_mysql(res_data):
else
:
image_url_source
=
1
try
:
image_type
=
img_type
.
get
(
img_info
[
0
]
.
split
(
"."
)[
-
1
]
.
upper
())
image_type
=
img_type
.
get
(
img_info
[
1
][
"format"
]
.
upper
())
except
:
image_type
=
1
try
:
width
=
img_info
[
1
][
"width"
]
height
=
img_info
[
1
][
"height"
]
except
:
width
=
0
height
=
0
try
:
if
img_type
==
7
:
sql_query
=
"""
insert into api_tractate_images (tractate_id,image_url,width,height,image_url_source,image_type,image_webp,create_time,update_time)
values ({tractate_id},{image_url},{width},{height},{image_url_source},{image_type},{image_webp},'{create_time}','{update_time}')
"""
.
format
(
tractate_id
=
tractate_id
,
image_url
=
img_info
[
0
],
width
=
img_info
[
1
][
"width"
],
height
=
img_info
[
1
][
"heigh"
],
image_url_source
=
image_url_source
,
image_type
=
image_type
,
insert into api_tractate_images (tractate_id,image_url,width,image_webp,height,image_url_source,image_type,image_webp,create_time,update_time)
values ({tractate_id},'{image_url}',{width},{height},{image_webp},{image_url_source},{image_type},{image_webp},'{create_time}','{update_time}')
"""
.
format
(
tractate_id
=
tractate_id
,
image_url
=
img_info
[
0
],
width
=
width
,
height
=
height
,
image_url_source
=
image_url_source
,
image_type
=
image_type
,
image_webp
=
img_info
[
0
],
create_time
=
now_str
,
update_time
=
now_str
)
else
:
sql_query
=
"""
insert into api_tractate_images (tractate_id,image_url,width,height,image_url_source,image_type,create_time,update_time)
values ({tractate_id},'{image_url}',{width},{height},{image_url_source},{image_type},'{create_time}','{update_time}')
"""
.
format
(
tractate_id
=
tractate_id
,
image_url
=
img_info
[
0
],
width
=
width
,
height
=
height
,
image_url_source
=
image_url_source
,
image_type
=
image_type
,
create_time
=
now_str
,
update_time
=
now_str
)
res
=
cur
.
execute
(
sql_query
)
if
res
:
conn
.
commit
()
except
Exception
as
e
:
print
(
"commit error
%
s"
%
e
)
conn
.
rollback
()
def
task_main
():
...
...
@@ -344,7 +371,8 @@ def task_main():
# 循环处理抓取数据,返回需要添加至后端的数据
for
res_data
in
scan_from_redis
(
rules_list
):
write_data_into_mysql
(
res_data
)
# test = {'release_time': 1595952037000, 'fetch_time': 1596012816514, 'url': 'https://www.douban.com/group/topic/186707979/', 'releaser': '🍫', 'repost_count': 40, 'comment_count': 411, 'favorite_count': 144, 'title': '王俊凯终于还是举铁了', 'releaserUrl': 'https://www.douban.com/people/57762442', 'releaser_id_str': 'douban_57762442', 'video_img': 'https://img3.doubanio.com/view/group_topic/sqxs/public/p317684082.webp', 'mid': '186707979', 'platform': 'douban', 'doc_id': 'douban_186707979', 'content': '<div id=\'content\'><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img3.doubanio.com/view/group_topic/l/public/p317684082.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img9.doubanio.com/view/group_topic/l/public/p317684064.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img3.doubanio.com/view/group_topic/l/public/p317684093.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img9.doubanio.com/view/group_topic/l/public/p317684095.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img3.doubanio.com/view/group_topic/l/public/p317684052.webp" width="500"/></div></div><p></p></div>', 'collection_count': 107, 'img_list': ['https://img3.doubanio.com/view/group_topic/l/public/p317684082.webp', 'https://img9.doubanio.com/view/group_topic/l/public/p317684064.webp', 'https://img3.doubanio.com/view/group_topic/l/public/p317684093.webp', 'https://img9.doubanio.com/view/group_topic/l/public/p317684095.webp', 'https://img3.doubanio.com/view/group_topic/l/public/p317684052.webp'], 'level': 5}
# write_data_into_mysql(test)
cur
.
close
()
conn
.
close
()
...
...
test/test_read_config.py
View file @
044201c0
...
...
@@ -116,6 +116,7 @@ from urllib.parse import parse_qs, urlparse
# values ({tractate_id},{image_url},{width},{height},{image_url_source},{image_type},{image_webp},{create_time},{update_time})
# """.format(tractate_id,image_url=,width=,height=,image_url_source=,image_type=,update_time=)
from
gm_upload
import
upload
,
upload_file
dic
=
{
'release_time'
:
1595998191000
,
'fetch_time'
:
1596012907161
,
'url'
:
'https://www.douban.com/group/topic/186761722/'
,
'releaser'
:
'三郎'
,
'repost_count'
:
0
,
'comment_count'
:
99
,
'favorite_count'
:
99
,
'title'
:
'鹿晗的肖枫真的很有人格魅力,又帅又迷人'
,
'releaserUrl'
:
'https://www.douban.com/people/62595619'
,
'releaser_id_str'
:
'douban_62595619'
,
'video_img'
:
'https://img9.doubanio.com/view/group_topic/sqxs/public/p317873386.webp'
,
'mid'
:
'186761722'
,
'platform'
:
'douban'
,
'doc_id'
:
'douban_186761722'
,
'content'
:
'<div id=
\'
content
\'
><p data-align="">这个角色比鹿晗演过的任何角色都有魅力</p><p data-align="">玩枪的seven就是最屌的</p><div class="video-wrapper"><div class="video-player-iframe"><iframe allowFullScreen="allowfullscreen" frameBorder="0" height="500" scrolling="no" src="https://player.bilibili.com/player.html?bvid=BV1Hi4y137Em" width="620"></iframe><div class="video-title">【鹿晗】【网剧穿越火线】来自狙神肖枫的“98k”卡点_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili</div></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img9.doubanio.com/view/group_topic/raw/public/p317873386.jpg" data-render-type="gif" src="https://img9.doubanio.com/view/group_topic/l/public/p317873386.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img1.doubanio.com/view/group_topic/raw/public/p317903399.jpg" data-render-type="gif" src="https://img1.doubanio.com/view/group_topic/l/public/p317903399.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img3.doubanio.com/view/group_topic/raw/public/p317873571.jpg" data-render-type="gif" src="https://img3.doubanio.com/view/group_topic/l/public/p317873571.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img3.doubanio.com/view/group_topic/raw/public/p317873470.jpg" data-render-type="gif" src="https://img3.doubanio.com/view/group_topic/l/public/p317873470.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img3.doubanio.com/view/group_topic/raw/public/p317873333.jpg" data-render-type="gif" src="https://img3.doubanio.com/view/group_topic/l/public/p317873333.webp" width="393"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img3.doubanio.com/view/group_topic/raw/public/p317873650.jpg" data-render-type="gif" src="https://img3.doubanio.com/view/group_topic/l/public/p317873650.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img1.doubanio.com/view/group_topic/raw/public/p317873259.jpg" data-render-type="gif" src="https://img1.doubanio.com/view/group_topic/l/public/p317873259.webp" width="500"/></div></div><p data-align="">阿哥阿嫂太甜了</p><div class="video-wrapper"><div class="video-player-iframe"><iframe allowFullScreen="allowfullscreen" frameBorder="0" height="500" scrolling="no" src="https://player.bilibili.com/player.html?bvid=BV1Xf4y1R7ho" width="620"></iframe><div class="video-title">【那些你很冒险的梦】肖枫x安蓝 | 坚持你的梦想,我陪你去疯_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili</div></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img1.doubanio.com/view/group_topic/raw/public/p317879698.jpg" data-render-type="gif" src="https://img1.doubanio.com/view/group_topic/l/public/p317879698.webp" width="360"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img3.doubanio.com/view/group_topic/l/public/p317873492.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img9.doubanio.com/view/group_topic/l/public/p317873485.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img3.doubanio.com/view/group_topic/raw/public/p317873440.jpg" data-render-type="gif" src="https://img3.doubanio.com/view/group_topic/l/public/p317873440.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img3.doubanio.com/view/group_topic/raw/public/p317873192.jpg" data-render-type="gif" src="https://img3.doubanio.com/view/group_topic/l/public/p317873192.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img3.doubanio.com/view/group_topic/raw/public/p317873662.jpg" data-render-type="gif" src="https://img3.doubanio.com/view/group_topic/l/public/p317873662.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img1.doubanio.com/view/group_topic/raw/public/p317873508.jpg" data-render-type="gif" src="https://img1.doubanio.com/view/group_topic/l/public/p317873508.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img1.doubanio.com/view/group_topic/raw/public/p317873588.jpg" data-render-type="gif" src="https://img1.doubanio.com/view/group_topic/l/public/p317873588.webp" width="500"/></div></div><p data-align="">游戏外也是颓废又迷人</p><p data-align="">带路小北踢球</p><p data-align=""><a class="link" href="https://v.douyin.com/J2shMhd/
%20
" rel="nofollow" target="_blank">【抖音短视频】记录美好生活-Douyin.com douyin.com</a></p><p data-align="">为阿嫂打架的肖枫<a class="link" href="https://m.weibo.cn/6868042261/4531755644095103" rel="nofollow" target="_blank">https://m.weibo.cn/6868042261/4531755644095103</a></p><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img3.doubanio.com/view/group_topic/raw/public/p317879723.jpg" data-render-type="gif" src="https://img3.doubanio.com/view/group_topic/l/public/p317879723.webp" width="500"/></div></div><p data-align="">惹阿嫂生气的肖枫</p><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img1.doubanio.com/view/group_topic/raw/public/p317881727.jpg" data-render-type="gif" src="https://img1.doubanio.com/view/group_topic/l/public/p317881727.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img3.doubanio.com/view/group_topic/l/public/p317881761.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img1.doubanio.com/view/group_topic/l/public/p317881709.webp" width="500"/></div></div><p data-align="">逗比枫<a class="link" href="https://m.weibo.cn/2819929303/4531402278702829" rel="nofollow" target="_blank">https://m.weibo.cn/2819929303/4531402278702829</a></p><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img9.doubanio.com/view/group_topic/l/public/p317911254.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img1.doubanio.com/view/group_topic/raw/public/p317911417.jpg" data-render-type="gif" src="https://img1.doubanio.com/view/group_topic/l/public/p317911417.webp" width="360"/></div></div><p data-align="">小人物肖枫</p><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img1.doubanio.com/view/group_topic/l/public/p317881748.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img3.doubanio.com/view/group_topic/l/public/p317881751.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img1.doubanio.com/view/group_topic/l/public/p317881757.webp" width="500"/></div></div><div class="image-container image-float-center"><div class="image-wrapper"><img src="https://img9.doubanio.com/view/group_topic/l/public/p317881744.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img9.doubanio.com/view/group_topic/raw/public/p317911344.jpg" data-render-type="gif" src="https://img9.doubanio.com/view/group_topic/l/public/p317911344.webp" width="500"/></div></div><div class="image-container image-float-center image-badge-gif"><div class="image-wrapper"><img data-original-url="https://img1.doubanio.com/view/group_topic/raw/public/p317911457.jpg" data-render-type="gif" src="https://img1.doubanio.com/view/group_topic/l/public/p317911457.webp" width="500"/></div></div><p></p></div>'
,
'collection_count'
:
11
,
'img_list'
:
[
'https://player.bilibili.com/player.html?bvid=BV1Hi4y137Em" width="620"></iframe><div class="video-title'
,
'https://img9.doubanio.com/view/group_topic/raw/public/p317873386.jpg'
,
'https://img9.doubanio.com/view/group_topic/l/public/p317873386.webp'
,
'https://img1.doubanio.com/view/group_topic/raw/public/p317903399.jpg'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317903399.webp'
,
'https://img3.doubanio.com/view/group_topic/raw/public/p317873571.jpg'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317873571.webp'
,
'https://img3.doubanio.com/view/group_topic/raw/public/p317873470.jpg'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317873470.webp'
,
'https://img3.doubanio.com/view/group_topic/raw/public/p317873333.jpg'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317873333.webp'
,
'https://img3.doubanio.com/view/group_topic/raw/public/p317873650.jpg'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317873650.webp'
,
'https://img1.doubanio.com/view/group_topic/raw/public/p317873259.jpg'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317873259.webp'
,
'https://player.bilibili.com/player.html?bvid=BV1Xf4y1R7ho" width="620"></iframe><div class="video-title'
,
'https://img1.doubanio.com/view/group_topic/raw/public/p317879698.jpg'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317879698.webp'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317873492.webp'
,
'https://img9.doubanio.com/view/group_topic/l/public/p317873485.webp'
,
'https://img3.doubanio.com/view/group_topic/raw/public/p317873440.jpg'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317873440.webp'
,
'https://img3.doubanio.com/view/group_topic/raw/public/p317873192.jpg'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317873192.webp'
,
'https://img3.doubanio.com/view/group_topic/raw/public/p317873662.jpg'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317873662.webp'
,
'https://img1.doubanio.com/view/group_topic/raw/public/p317873508.jpg'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317873508.webp'
,
'https://img1.doubanio.com/view/group_topic/raw/public/p317873588.jpg'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317873588.webp'
,
'https://v.douyin.com/J2shMhd/
%20
" rel="nofollow'
,
'https://m.weibo.cn/6868042261/4531755644095103" rel="nofollow'
,
'https://img3.doubanio.com/view/group_topic/raw/public/p317879723.jpg'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317879723.webp'
,
'https://img1.doubanio.com/view/group_topic/raw/public/p317881727.jpg'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317881727.webp'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317881761.webp'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317881709.webp'
,
'https://m.weibo.cn/2819929303/4531402278702829" rel="nofollow'
,
'https://img9.doubanio.com/view/group_topic/l/public/p317911254.webp'
,
'https://img1.doubanio.com/view/group_topic/raw/public/p317911417.jpg'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317911417.webp'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317881748.webp'
,
'https://img3.doubanio.com/view/group_topic/l/public/p317881751.webp'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317881757.webp'
,
'https://img9.doubanio.com/view/group_topic/l/public/p317881744.webp'
,
'https://img9.doubanio.com/view/group_topic/raw/public/p317911344.jpg'
,
'https://img9.doubanio.com/view/group_topic/l/public/p317911344.webp'
,
'https://img1.doubanio.com/view/group_topic/raw/public/p317911457.jpg'
,
'https://img1.doubanio.com/view/group_topic/l/public/p317911457.webp'
],
'level'
:
3
}
dic
=
{
"release_time"
:
1596000852000
,
"fetch_time"
:
1596012913346
,
"url"
:
"https://www.douban.com/group/topic/186767781/"
,
"releaser"
:
"
\\
u6000
\\
u96ea"
,
"repost_count"
:
8
,
"comment_count"
:
102
,
"favorite_count"
:
3
,
"title"
:
"
\\
u4e00
\\
u7ebf
\\
u57ce
\\
u5e02
\\
u629a
\\
u517b
\\
u5c0f
\\
u5b69
\\
u81f322
\\
u5c81
\\
u9700
\\
u82b1
\\
u8d3996.8w(
\\
u4e0d
\\
u7b97
\\
u901a
\\
u80c0
\\
uff09"
,
"releaserUrl"
:
"https://www.douban.com/people/3355488"
,
"releaser_id_str"
:
"douban_3355488"
,
"video_img"
:
"https://img3.doubanio.com/view/group_topic/sqxs/public/p317893711.webp"
,
"mid"
:
"186767781"
,
"platform"
:
"douban"
,
"doc_id"
:
"douban_186767781"
,
"content"
:
"""<div id=
\'
content
\'
><div class=
\\
"image-container image-float-center
\\
"><div class=
\\
"image-wrapper
\\
"><img src=
\\
"https://img3.doubanio.com/view/group_topic/l/public/p317893711.webp
\\
" width=
\\
"500
\\
"/></div><div class=
\\
"image-caption-wrapper
\\
"><div class=
\\
"image-caption
\\
">
\\
u5e73
\\
u5747
\\
u6570
\\
u636e</div></div></div><div class=
\\
"image-container image-float-center
\\
"><div class=
\\
"image-wrapper
\\
"><img src=
\\
"https://img1.doubanio.com/view/group_topic/l/public/p317906948.webp
\\
" width=
\\
"500
\\
"/></div><div class=
\\
"image-caption-wrapper
\\
"><div class=
\\
"image-caption
\\
">
\\
u4e3b
\\
u8981
\\
u6d88
\\
u8d39
\\
u7684
\\
u65b9
\\
u9762</div></div></div><p>
\\
u6d88
\\
u8d39
\\
u6570
\\
u636e
\\
u6765
\\
u6e90
\\
u4e8e
\\
u592e
\\
u89c6
\\
u8d22
\\
u7ecf
\\
u65b0
\\
u95fb
\\
uff0c2019
\\
u5e74
\\
u7684
\\
u6570
\\
u636e
\\
uff0c
\\
u4e0d
\\
u7b97
\\
u901a
\\
u80c0
\\
uff0c
\\
u4e00
\\
u7ebf
\\
u5e73
\\
u5747
\\
u629a
\\
u517b
\\
u5230
\\
u5927
\\
u5b66
\\
u6bd5
\\
u4e1a22
\\
u5468
\\
u5c81
\\
uff0c
\\
u5171
\\
u7ea696.8w
\\
u3002</p><p>2
\\
u7ebf 80.74w
\\
n3
\\
u7ebf 64.68w
\\
n
\\
u6d88
\\
u8d39
\\
u6295
\\
u5165
\\
u65b9
\\
u5411
\\
u4e3b
\\
u8981
\\
u662f
\\
u5403
\\
u7a7f
\\
u5174
\\
u8da3
\\
u4e66
\\
u7c4d
\\
u8865
\\
u4e60
\\
u3002</p><p>
\\
u8fd9
\\
u7b97
\\
u666e
\\
u901a
\\
u7a77
\\
u517b
\\
uff0c
\\
u6ca1
\\
u6709
\\
u7b9722
\\
u5e74
\\
u7684
\\
u901a
\\
u80c0
\\
u3002
\\
u622a
\\
u53d6
\\
u6570
\\
u636e
\\
u4e3b
\\
u8981
\\
u662f
\\
u7ed9
\\
u5927
\\
u5bb6
\\
u770b
\\
u770b
\\
u629a
\\
u517b
\\
u5c0f
\\
u670b
\\
u53cb
\\
u81f3
\\
u6210
\\
u4eba
\\
u7684
\\
u7ecf
\\
u6d4e
\\
u6210
\\
u672c
\\
uff0c
\\
u5982
\\
u679c
\\
u7b97
\\
u4e0a
\\
u901a
\\
u80c0
\\
uff0c
\\
u53ef
\\
u80fd
\\
u8981
\\
u4e58
\\
u4ee52
\\
u3002</p><p>
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
n</p><div class=
\\
"image-container image-float-center
\\
"><div class=
\\
"image-wrapper
\\
"><img src=
\\
"https://img1.doubanio.com/view/group_topic/l/public/p317943668.webp
\\
" width=
\\
"500
\\
"/></div><div class=
\\
"image-caption-wrapper
\\
"><div class=
\\
"image-caption
\\
">
\\
u7f51
\\
u4e0a
\\
u770b
\\
u5230
\\
u7684
\\
u8868
\\
u683c
\\
u53ef
\\
u4ee5
\\
u53c2
\\
u8003
\\
u4e00
\\
u4e0b</div></div></div></div>"""
,
"collection_count"
:
42
,
"img_list"
:
[
"https://img3.doubanio.com/view/group_topic/l/public/p317893711.webp"
,
"https://img1.doubanio.com/view/group_topic/l/public/p317906948.webp"
,
"https://img1.doubanio.com/view/group_topic/l/public/p317943668.webp"
]}
', b'
{
"release_time"
:
1596000852000
,
"fetch_time"
:
1596012900029
,
"url"
:
"https://www.douban.com/group/topic/186767781/"
,
"releaser"
:
"
\\
u6000
\\
u96ea"
,
"repost_count"
:
8
,
"comment_count"
:
102
,
"favorite_count"
:
3
,
"title"
:
"
\\
u4e00
\\
u7ebf
\\
u57ce
\\
u5e02
\\
u629a
\\
u517b
\\
u5c0f
\\
u5b69
\\
u81f322
\\
u5c81
\\
u9700
\\
u82b1
\\
u8d3996.8w(
\\
u4e0d
\\
u7b97
\\
u901a
\\
u80c0
\\
uff09"
,
"releaserUrl"
:
"https://www.douban.com/people/3355488"
,
"releaser_id_str"
:
"douban_3355488"
,
"video_img"
:
"https://img3.doubanio.com/view/group_topic/sqxs/public/p317893711.webp"
,
"mid"
:
"186767781"
,
"platform"
:
"douban"
,
"doc_id"
:
"douban_186767781"
,
"content"
:
"<div id=
\'
content
\'
><div class=
\\
"
image
-
container
image
-
float
-
center
\\
"><div class=
\\
"
image
-
wrapper
\\
"><img src=
\\
"
https
:
//
img3
.
doubanio
.
com
/
view
/
group_topic
/
l
/
public
/
p317893711
.
webp
\\
" width=
\\
"
500
\\
"/></div><div class=
\\
"
image
-
caption
-
wrapper
\\
"><div class=
\\
"
image
-
caption
\\
">
\\
u5e73
\\
u5747
\\
u6570
\\
u636e</div></div></div><div class=
\\
"
image
-
container
image
-
float
-
center
\\
"><div class=
\\
"
image
-
wrapper
\\
"><img src=
\\
"
https
:
//
img1
.
doubanio
.
com
/
view
/
group_topic
/
l
/
public
/
p317906948
.
webp
\\
" width=
\\
"
500
\\
"/></div><div class=
\\
"
image
-
caption
-
wrapper
\\
"><div class=
\\
"
image
-
caption
\\
">
\\
u4e3b
\\
u8981
\\
u6d88
\\
u8d39
\\
u7684
\\
u65b9
\\
u9762</div></div></div><p>
\\
u6d88
\\
u8d39
\\
u6570
\\
u636e
\\
u6765
\\
u6e90
\\
u4e8e
\\
u592e
\\
u89c6
\\
u8d22
\\
u7ecf
\\
u65b0
\\
u95fb
\\
uff0c2019
\\
u5e74
\\
u7684
\\
u6570
\\
u636e
\\
uff0c
\\
u4e0d
\\
u7b97
\\
u901a
\\
u80c0
\\
uff0c
\\
u4e00
\\
u7ebf
\\
u5e73
\\
u5747
\\
u629a
\\
u517b
\\
u5230
\\
u5927
\\
u5b66
\\
u6bd5
\\
u4e1a22
\\
u5468
\\
u5c81
\\
uff0c
\\
u5171
\\
u7ea696.8w
\\
u3002</p><p>2
\\
u7ebf 80.74w
\\
n3
\\
u7ebf 64.68w
\\
n
\\
u6d88
\\
u8d39
\\
u6295
\\
u5165
\\
u65b9
\\
u5411
\\
u4e3b
\\
u8981
\\
u662f
\\
u5403
\\
u7a7f
\\
u5174
\\
u8da3
\\
u4e66
\\
u7c4d
\\
u8865
\\
u4e60
\\
u3002</p><p>
\\
u8fd9
\\
u7b97
\\
u666e
\\
u901a
\\
u7a77
\\
u517b
\\
uff0c
\\
u6ca1
\\
u6709
\\
u7b9722
\\
u5e74
\\
u7684
\\
u901a
\\
u80c0
\\
u3002
\\
u622a
\\
u53d6
\\
u6570
\\
u636e
\\
u4e3b
\\
u8981
\\
u662f
\\
u7ed9
\\
u5927
\\
u5bb6
\\
u770b
\\
u770b
\\
u629a
\\
u517b
\\
u5c0f
\\
u670b
\\
u53cb
\\
u81f3
\\
u6210
\\
u4eba
\\
u7684
\\
u7ecf
\\
u6d4e
\\
u6210
\\
u672c
\\
uff0c
\\
u5982
\\
u679c
\\
u7b97
\\
u4e0a
\\
u901a
\\
u80c0
\\
uff0c
\\
u53ef
\\
u80fd
\\
u8981
\\
u4e58
\\
u4ee52
\\
u3002</p><p>
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
uff0d
\\
n</p><div class=
\\
"
image
-
container
image
-
float
-
center
\\
"><div class=
\\
"
image
-
wrapper
\\
"><img src=
\\
"
https
:
//
img1
.
doubanio
.
com
/
view
/
group_topic
/
l
/
public
/
p317943668
.
webp
\\
" width=
\\
"
500
\\
"/></div><div class=
\\
"
image
-
caption
-
wrapper
\\
"><div class=
\\
"
image
-
caption
\\
">
\\
u7f51
\\
u4e0a
\\
u770b
\\
u5230
\\
u7684
\\
u8868
\\
u683c
\\
u53ef
\\
u4ee5
\\
u53c2
\\
u8003
\\
u4e00
\\
u4e0b</div></div></div></div>"
,
"collection_count"
:
42
,
"img_list"
:
[
"https://img3.doubanio.com/view/group_topic/l/public/p317893711.webp"
,
"https://img1.doubanio.com/view/group_topic/l/public/p317906948.webp"
,
"https://img1.doubanio.com/view/group_topic/l/public/p317943668.webp"
]}
res
=
upload_file
(
"D:
\
lemo下载
\
p317377995.jpg"
)
print
(
res
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment