Skip to content

Commit

Permalink
Fix: mapping table null value change to 1st xpath value
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Nov 20, 2021
1 parent e2600f7 commit 7d0bdb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WebCrawler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def get_data_from_json(file_number, oCC): # 从JSON返回元数据
cc_vars = conf.cc_convert_vars().split(",")
ccm = conf.cc_convert_mode()
for cc in cc_vars:
if json_data[cc] == "" or len(json_data[cc]) == 0:
continue
if cc == "actor":
try:
if ccm == 1:
Expand Down

0 comments on commit 7d0bdb8

Please sign in to comment.