Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
network-assets-reptile
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
liyang
network-assets-reptile
Commits
ad694283
Commit
ad694283
authored
Jul 27, 2023
by
liyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:ptt debug
parent
adaa89cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
pc_ptt.py
pc_ptt.py
+2
-3
No files found.
pc_ptt.py
View file @
ad694283
...
...
@@ -62,11 +62,10 @@ def reptile(browser=None, search_word=""):
# print(element_list[index_two].text)
try
:
re
.
findall
(
"公告"
,
element_list
[
index_two
]
.
text
)
except
:
except
IndexError
:
log
.
debug
(
f
"正在爬取分类:{type_title}-第{index_two + 1}条"
)
print
(
"当前连接:"
+
str
(
browser
.
current_url
))
print
(
element_list
[
index_two
]
.
get_attribute
(
"outerHTML"
))
print
(
"出现错误:"
)
print
(
data
[
len
(
data
)
-
1
][
"title"
])
# 标题不包含"公告"和"看板"
if
re
.
findall
(
"公告"
,
element_list
[
index_two
]
.
text
)
or
re
.
findall
(
"看板"
,
element_list
[
index_two
]
.
text
):
...
...
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