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
backend
crawler
Commits
33e4cf27
Commit
33e4cf27
authored
4 years ago
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
33c3a866
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
func_get_releaser_id.py
write_data_into_es/func_get_releaser_id.py
+2
-7
target_releaser_add.py
write_data_into_es/target_releaser_add.py
+3
-3
No files found.
write_data_into_es/func_get_releaser_id.py
View file @
33e4cf27
...
@@ -272,7 +272,7 @@ def weibo(releaserUrl,**kwargs):
...
@@ -272,7 +272,7 @@ def weibo(releaserUrl,**kwargs):
releaser_id
=
int
(
releaserUrl
)
releaser_id
=
int
(
releaserUrl
)
except
:
except
:
return
None
return
None
print
(
releaser_id
)
#
print(releaser_id)
return
releaser_id
return
releaser_id
except
:
except
:
return
None
return
None
...
@@ -296,17 +296,12 @@ plantform_func = {
...
@@ -296,17 +296,12 @@ plantform_func = {
def
get_releaser_id
(
platform
=
None
,
releaserUrl
=
None
,
is_qq
=
False
):
def
get_releaser_id
(
platform
=
None
,
releaserUrl
=
None
,
is_qq
=
False
):
import
pdb
;
pdb
.
set_trace
()
# import pdb;pdb.set_trace()
print
(
11111111111111111
,
flush
=
True
)
if
platform
and
releaserUrl
:
if
platform
and
releaserUrl
:
if
platform
in
plantform_func
:
if
platform
in
plantform_func
:
try
:
try
:
print
(
11111111111111111
)
func
=
plantform_func
[
platform
]
func
=
plantform_func
[
platform
]
print
(
platform
)
print
(
func
)
res
=
func
(
releaserUrl
,
is_qq
=
is_qq
)
res
=
func
(
releaserUrl
,
is_qq
=
is_qq
)
print
(
res
)
if
res
:
if
res
:
return
res
return
res
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
write_data_into_es/target_releaser_add.py
View file @
33e4cf27
...
@@ -113,9 +113,9 @@ def write_to_es(file, push_to_redis=True, update=True, key_releaser=False, updat
...
@@ -113,9 +113,9 @@ def write_to_es(file, push_to_redis=True, update=True, key_releaser=False, updat
if
extra_dic
:
if
extra_dic
:
line_dict
.
update
(
extra_dic
)
line_dict
.
update
(
extra_dic
)
import
pdb
;
#
import pdb;
pdb
.
set_trace
()
#
pdb.set_trace()
print
(
str
(
get_releaser_id
(
platform
=
platform
,
releaserUrl
=
releaserUrl
)))
#
print(str(get_releaser_id(platform=platform, releaserUrl=releaserUrl)))
line_dict
[
"releaser_id"
]
=
get_releaser_id
(
platform
=
platform
,
releaserUrl
=
releaserUrl
)
line_dict
[
"releaser_id"
]
=
get_releaser_id
(
platform
=
platform
,
releaserUrl
=
releaserUrl
)
if
line_dict
[
"releaser_id"
]:
if
line_dict
[
"releaser_id"
]:
...
...
This diff is collapsed.
Click to expand it.
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