Commit 2788ec35 authored by 李康's avatar 李康

freeze rotation when scraper starts

parent 04067762
......@@ -292,6 +292,7 @@ def getProductByType(argv):
d = u2.connect_usb('d52196830204')
print(d.app_current())
d.freeze_rotation()
if getProductFilterUiObj(d).count == 0:
clickBrand(d, brand_name)
......@@ -327,6 +328,7 @@ def getProductByType(argv):
# return to the brand list page in case
# you want to continue scraping anthoer brand
d.press("back")
d.freeze_rotation(False)
if __name__=='__main__':
getProductByType(sys.argv)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment