Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
chip1stop_cate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9bc7ba58
authored
Apr 03, 2019
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
'minus'
parent
ac071c7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
goods.py
goods.py
View file @
9bc7ba58
...
...
@@ -170,13 +170,13 @@ class Task(object):
if
__name__
==
'__main__'
:
p
=
Pool
(
3
)
#
p = Pool(3)
for
req
in
get_url
():
# for req in [('https://www.chip1stop.com/HKG/zh/view/searchResult/SearchResultTop?classCd=081015&classLv=3&subWinSearchFlg=false&searchType=2&dispAllFlg=true&searchFlg=false&direct_Flg=true',0)]:
url
=
req
[
0
]
cat_id
=
req
[
1
]
p
.
apply_async
(
gen_table_doms
,
args
=
(
url
,
cat_id
))
#
gen_table_doms(url,cat_id)
#
p.apply_async(gen_table_doms, args=(url, cat_id))
gen_table_doms
(
url
,
cat_id
)
p
.
close
()
p
.
join
()
#
p.close()
#
p.join()
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