Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Amazon-Selection-Data
Overview
Overview
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
abel_cjy
Amazon-Selection-Data
Commits
9044a5f3
Commit
9044a5f3
authored
Apr 27, 2026
by
fangxingjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6cf4951a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
site_search_term_to_syn.py
Pyspark_job/listen_program/site_search_term_to_syn.py
+7
-1
No files found.
Pyspark_job/listen_program/site_search_term_to_syn.py
View file @
9044a5f3
...
...
@@ -28,6 +28,11 @@ class Integrate_search_term():
self
.
engine_mysql
=
DBUtil
.
get_db_engine
(
"mysql"
,
"us"
)
self
.
date_info_pre
=
self
.
get_pre_week
(
date_info
)
self
.
date_type
=
date_type
self
.
site_name_pri_dict
=
{
"us"
:
1
,
"uk"
:
3
,
"de"
:
5
,
}
def
fetch_year_month_by_week
(
self
):
if
self
.
date_type
==
'week'
:
...
...
@@ -90,6 +95,7 @@ class Integrate_search_term():
conn
.
execute
(
deletesql
)
with
self
.
engine_mysql
.
begin
()
as
conn
:
priority
=
self
.
site_name_pri_dict
[
self
.
site_name
]
update_sql_workflow
=
f
"""
INSERT INTO workflow_manager
(
...
...
@@ -110,7 +116,7 @@ class Integrate_search_term():
'{self.site_name}',
'month',
'{self.date_info}',
1
,
{priority}
,
'us_spider_st',
'yes',
1,
...
...
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