Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
Appium-crawl
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
李康
Appium-crawl
Commits
363bd660
Commit
363bd660
authored
Oct 27, 2019
by
李康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fix
parent
d3f53556
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
brands.py
brands.py
+5
-5
No files found.
brands.py
View file @
363bd660
...
...
@@ -61,7 +61,7 @@ def getAllBrands():
brand
=
temp
break
res
=
getBrandDetail
(
d
,
brand
,
done
)
res
=
getBrandDetail
(
brand
,
done
)
if
res
is
not
None
:
print
(
delim
.
join
(
res
))
f
.
write
(
delim
.
join
(
res
)
+
"
\n
"
)
...
...
@@ -74,7 +74,7 @@ def getAllBrands():
d
.
swipe_ext
(
"up"
,
scale
=
0.2
)
brands
=
d
(
className
=
"android.support.v7.widget.RecyclerView"
)
.
child
(
resourceId
=
"org.c2h4.afei.beauty:id/tv_name"
)
for
idx
in
range
(
1
,
brands
.
count
):
res
=
getBrandDetail
(
d
,
brands
[
idx
],
done
)
res
=
getBrandDetail
(
brands
[
idx
],
done
)
if
res
is
not
None
:
f
.
writelines
(
delim
.
join
(
res
))
print
(
delim
.
join
(
res
)
+
"
\n
"
)
...
...
@@ -102,7 +102,7 @@ def getEnglishBrands():
brand
=
temp
break
res
=
getBrandDetail
(
d
,
brand
,
done
)
res
=
getBrandDetail
(
brand
,
done
)
if
res
is
not
None
:
print
(
delim
.
join
(
res
))
f
.
write
(
delim
.
join
(
res
)
+
"
\n
"
)
...
...
@@ -115,7 +115,7 @@ def getEnglishBrands():
d
.
swipe_ext
(
"up"
,
scale
=
0.2
)
brands
=
d
(
className
=
"android.support.v7.widget.RecyclerView"
)
.
child
(
resourceId
=
"org.c2h4.afei.beauty:id/tv_name"
)
for
idx
in
range
(
1
,
brands
.
count
):
res
=
getBrandDetail
(
d
,
brands
[
idx
],
done
)
res
=
getBrandDetail
(
brands
[
idx
],
done
)
if
res
is
not
None
:
f
.
writelines
(
delim
.
join
(
res
))
print
(
delim
.
join
(
res
)
+
"
\n
"
)
...
...
@@ -125,5 +125,5 @@ def getEnglishBrands():
f
.
close
()
if
__name__
==
'__main__'
:
getAllBrands
()
#
getAllBrands()
getEnglishBrands
()
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